How to shift plots of a figure in plot browser?
Afficher commentaires plus anciens
Hi, I just have a figure and I lost its data. I want to shift plots vertically in plot browser. How I can do this?
8 commentaires
Romano Geerling
le 14 Nov 2016
Sorry but your question is very unclear to me? What do you want? You lost your data and want to shift plots? What do you mean with shifting plots? What do you want to plot if you have no data?
sH
le 14 Nov 2016
Sohuj
le 14 Nov 2016
Im so so so sorry about this but can someone please answer this for me: Email:sohuj@stromox.com

Walter Roberson
le 14 Nov 2016
sH, how is the figure stored? Is it an image file or a .fig ?
Walter Roberson
le 14 Nov 2016
Sohuj,
None of those statements is always true or always false. It depends on what "the workspace" refers to.
Scripts have access to variables in the base workspace and the global workspace and the workspace of their caller.
Functions have access to the base workspace, the global workspace, their own workspace, the workspace of their caller, and to shared variables, and to values that are passed in. Note that variables are never passed into functions: values are passed into functions.
If a function creates a variable in the base workspace, the global workspace, the workspace of its caller, or a persistent variable, or attaches a variable to an object such as a graphics object, then the variable will continue to exist after the function has stopped running.
walter, thank you so much for giving me a response, this question is intended to be very basic so dont think too much into it, if it came up in a multiple choice hw for school, which option would you pick?, for me i think its option 2 but im not 100 percent positive.
plz reply thanks
Walter Roberson
le 14 Nov 2016
If there was no indication of which workspace, then I would complain to the professor / TA that the question was unanswerable.
sH
le 15 Nov 2016
Réponses (2)
Walter Roberson
le 15 Nov 2016
fig = openfig('NameOfFigFile.fig');
When the plot comes up it, if it ha the standard toolbar with the zoom and pan and data brushing tools, then the right-most icon in that line activates the property editor. Click on that and you will be taken to menus that allow you to select parts of the plot and edit the properties. After that is all done, you can save again with
savefig(fig, 'NewFileNameForFig.fig')
Catégories
En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!