help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with placing legend with GNUplot


From: kovarka4
Subject: problem with placing legend with GNUplot
Date: Thu, 3 May 2012 14:59:41 -0700 (PDT)

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!!!

--
View this message in context: 
http://octave.1599824.n4.nabble.com/problem-with-placing-legend-with-GNUplot-tp4607216.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]