How to show the complete legend in the plot window of Dymola? - modelica

I am trying to plot some of my results in Dymola, but when I plot a few curves in one graph, the legend can't show completely, is there any setup I could use to let the legend show completely?

You can select from various legend styles in the plot window setup.
In your case Right would be the choice.

Related

Default display of axes in Matlab Gui

I tried using axes for displaying images in Gui.But, before displaying any images, the axes is shown with a plot figure while running the GUI, something like below.
You can see the default axes being displayed. Is there a way to display the axes in running GUI without displaying these plot figures? So that when the image is not displayed in the axes, nothing is displayed. Thanks in advance.
UPDATE 1
I have used 9 axes here, thus the long trail of y axis.
Yes, you can use
axis off
To remove the axes from the empty plots. Then use
axis on
When you actually plot something to bring them back.
Best,

Generate Matlab Plot Code from Figure Editor

I'm plotting a spectrogram in Matlab and have been editing the axis properties, colormap, and a few other things manually by hand in the Figures editor ("Edit > Colormap or Axis Properties...").
Is there a way to generate/view the code that is creating the plots from the Figure Editor? I could/should dig around some more to see what the calls are to show/fix the color bar and the color map, but it would be really nice to just see the code exactly how I've edited it through the Figure editor. Is this possible?
In the editing menu you can show the code-changes simply by right-clicking into the figure and choosing "Show-M-Code"

Change color of line plotted with Tools>Basic fitting

I have several different data series that i would like to do a shape-preserving curve fit on.
I have the points plotted but when i go into Tools>Basic fitting>Shape-preserving interpolant the curve gets a random(?) colour and when i go to the next series the fit disapears.
How do make the fits stay for each data serie and how do change its colour afterwards using the toolbox in the plot window. If there is no easy solution is it possible with script, what to write?
This is what one data series looks like
%950
Wloss_950=950/(PWM1_1250CoreLoss+PWM4_1250CoreLoss)*(885.7312-632.7188)+632.7188;
Wloss_950=[Wloss_950;950/(PWM2_2000CoreLoss+PWM4_2000CoreLoss)*(405.8198-281.4403)+281.4403];
Wloss_950=[Wloss_950;950/(PWM3_2500CoreLoss+PWM5_2500CoreLoss)*(107-24.5466)+24.5466];
Wloss_950=[Wloss_950;950/(PWM3_4000CoreLoss)*24.5466];
Wloss_950=[Wloss_950;950/(PWM3_5000CoreLoss)*20.5796];
plot(speed, Wloss_950,'+','color', 'red')
In the figure window go to Tools -> Edit Plot then double tap on the line and editor window should open, in which you will be able to change colour, width, etc.

How to define Matlab Bar3 DisplayName for individual surface objects

I have a series of histograms being plotted along side each other in a bar3 plot. I'd like to take advantage of the plot browser to turn on and off various histograms so I can do side by side comparisons. You can see from the properties Inspector that I've altered the display name for one such surface, the third, that is being updated in the legend but not in the property browser.
There's also a misregistration of the colors you see in the legend to that of the actual plot. The legend is accurate only when I have all surfaces checked for display.
I'm using MATLAB Version 7.13.0.564 (R2011b)
Thanks for helping
Toggle the legend off and on with legend('off') followed by legend('show'). Try also legend('toggle').

how to edit different axis manually in matlab's figure?

I am using a plotyy in matlab to ploy two data set in a same figure. I want to use the figure menu to edit the axes property manually. But I found that I can only select and edit the first axis but not the second one. Of course, I can edit those with command 'set' but just wonder how to select the second axis.
In your figure, click "View -> Plot Browser", the second axis will be listed at the bottom and can be selected.