[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with placing legend with GNUplot
From: |
Ben Abbott |
Subject: |
Re: problem with placing legend with GNUplot |
Date: |
Thu, 03 May 2012 20:36:08 -0400 |
On May 3, 2012, at 5:59 PM, kovarka4 wrote:
> Hi, I'm using octave 3.6.1 and gnuplot 4.4 patchlevel 4 on WIN 7.
>
> I'm trying plot some graphs and I need place legend outside the graph
> (because lines are from y-min to y-max and legend is above the graph). I
> specially use "location" and "northeastoutside" mode. Color lines are
> outside the graph but text is on right border of graph. See image.
> http://octave.1599824.n4.nabble.com/file/n4607216/A_X_27_11_12.png
>
> There is part of my script:
>
> figure(mm)
> hold on
> titulek = sprintf("Odchylka souřadnice X [m] od globálního průměru polohy
> pilíře %s\n%s.3.2012 od %s do %s",pilir,datum,cas00,cas60);
> title(titulek)
> xlabel('jednotlivé body reprezentují čas záznamu po 15 sec')
> ylabel('odchylka od průměru [m]')
> plot([ii,0], [0,0],'-g')
> plot(BB(1:5,7),BB(1:5,5),'-r',BB(6:10,7),BB(6:10,5),'-b',BB(11:end,7),BB(11:end,5),'-c')
> axis([00,ii,-0.02,0.02])
> ax=gca();
> set (ax, "xtick", aa)
> set (ax, "xticklabel", bb)
> labels={'globální průměr','CZEPOS','Trimble VRS Now','TopNET'};
>
> legend(labels, "location", 'northeastoutside')
> legend("right")
> set(ax,"fontsize",8)
> nazev = sprintf("%sX_%s_%s_%s.png",sloup,datum,cas,cas_plus);
> print('-dpng',nazev);
> hold off
>
> Sorry for czech parts in script...
>
> Do somebody know how to fix my problem?
> Thank you all!!!
Which graphics toolkit are you using?
You can find out by typing "graphics_toolkit"
In any event, if you change the toolkit, the result may improve. Your choices
are ....
close all
graphics_toolkit fltk
plot (...)
or
close all
graphics_toolkit gnuplot
plot (...)
Ben
- problem with placing legend with GNUplot, kovarka4, 2012/05/03
- Re: problem with placing legend with GNUplot,
Ben Abbott <=
- Re: problem with placing legend with GNUplot, kovarka4, 2012/05/04
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/04
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/05
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/05
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/05
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/06
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/06
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/06
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/06
- Message not available
- Re: problem with placing legend with GNUplot, Ben Abbott, 2012/05/06