From: Kaj W. <kaj...@ik...> - 2008-03-05 11:22:58
|
Hi! There seems to be a bug in the algorithm that determines the numeric labes for axes. It is easier to show than explain.. This code: use PDL; use PDL::Graphics::PLplot; plinit(); plenv(2003, 2005, 2003, 2005, 0, 0); plend; produces these labels: | 2005 + | 2005 + | 2004 + | 2004 + | 2003 ----+--------+--------+--------+--------+--- 2003 2004 2004 2005 2005 I guess they should read "2003 2003.5 2004 2004.5 2005". Any suggestions? Thanks, Kaj |
From: Kaj W. <kaj...@ik...> - 2008-03-05 10:41:50
|
Forgot to mention library version: 5.6.1-11ubuntu1 (gutsy) 2008/3/5, Kaj Wiik <kaj...@ik...>: > Hi! > > There seems to be a bug in the algorithm that determines the numeric > labes for axes. It is easier to show than explain.. This code: > > use PDL; > use PDL::Graphics::PLplot; > > plinit(); > plenv(2003, 2005, 2003, 2005, 0, 0); > plend; > > produces these labels: > > | > 2005 + > | > 2005 + > | > 2004 + > | > 2004 + > | > 2003 ----+--------+--------+--------+--------+--- > 2003 2004 2004 2005 2005 > > I guess they should read "2003 2003.5 2004 2004.5 2005". > > Any suggestions? > > Thanks, > > Kaj > |
From: Bruno P. <bp...@cl...> - 2008-03-05 11:26:17
Attachments:
kodama.gif
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi Kaj,<br> <br> maybe you should have a look on <tt>plsxax</tt> and <tt>plsyax</tt> that set the number of digits for the respective axis labels.<br> <br> Bruno<br> <br> Kaj Wiik a écrit : <blockquote cite="mid:33a...@ma..." type="cite"> <pre wrap="">Hi! There seems to be a bug in the algorithm that determines the numeric labes for axes. It is easier to show than explain.. This code: use PDL; use PDL::Graphics::PLplot; plinit(); plenv(2003, 2005, 2003, 2005, 0, 0); plend; produces these labels: | 2005 + | 2005 + | 2004 + | 2004 + | 2003 ----+--------+--------+--------+--------+--- 2003 2004 2004 2005 2005 I guess they should read "2003 2003.5 2004 2004.5 2005". Any suggestions? Thanks, Kaj ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. <a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a> _______________________________________________ Plplot-general mailing list <a class="moz-txt-link-abbreviated" href="mailto:Plp...@li...">Plp...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/plplot-general">https://lists.sourceforge.net/lists/listinfo/plplot-general</a> Cliquez sur l'url suivante <a class="moz-txt-link-freetext" href="https://www.mailcontrol.com/sr/utEQ1jyLd1rYurjinSLgVjPeMs3TX6DHBAH9dv0iKLuVt5aXW2kXh1U!WTb+97IT!KtJs4xwJ9l70hA+3HhhZZNR4vekHxovPhAiUsXQ5y6WIznxmyac+77vqO9Uz+!FUiOOWpBkUQvYATPAeAOog0CXePp0ZjJT1NfBGhTYfxfQvjPX+biTeqBr5jFqZ44IaqLbnR7sxA4ye1bAgiB5YC5rzMKj6kOL">https://www.mailcontrol.com/sr/utEQ1jyLd1rYurjinSLgVjPeMs3TX6DHBAH9dv0iKLuVt5aXW2kXh1U!WTb+97IT!KtJs4xwJ9l70hA+3HhhZZNR4vekHxovPhAiUsXQ5y6WIznxmyac+77vqO9Uz+!FUiOOWpBkUQvYATPAeAOog0CXePp0ZjJT1NfBGhTYfxfQvjPX+biTeqBr5jFqZ44IaqLbnR7sxA4ye1bAgiB5YC5rzMKj6kOL</a> si ce message est indésirable (pourriel). </pre> </blockquote> <br> <div class="moz-signature">-- <br> <div align="center"><u>____________________________________________________</u> <br> <font face="Verdana" size="2"> Dr. Bruno Picard <br> <br> CLS<br> Dir. Océanographie Spatiale, Dép. Traitement de la Mesure et Segment Sol <br> <i>Space Oceanography Division, Data Analysis and Ground Processing Unit</i><br> <br> 8-10 rue Hermès, 31520 Ramonville Saint Agne, France<br> <table border="0"> <tbody> <tr> <td><font face="Verdana" size="2">Tél: (+33)5.61.39.37.37</font></td> <td><font face="Verdana" size="2">Fax: (+33)5.61.39.37.82</font></td> </tr> <tr> <td><font face="Verdana" size="2"><a href="mailto:bp...@cl...">bp...@cl...</a></font></td> <td><font face="Verdana" size="2"><a href="http://www.cls.fr">http://www.cls.fr</a><br> <font face="Verdana" size="2"><a href="http://www.jason.oceanobs.com">http://www.jason.oceanobs.com</a> (aviso site)<br> <font face="Verdana" size="2"><a href="http://www.ipcc.ch">http://www.ipcc.ch</a></font></font></font></td> </tr> </tbody> </table> </font><u>____________________________________________________</u><br> <img src="cid:par...@cl..."><br> </div> </div> </body> </html> |
From: Kaj W. <kaj...@ik...> - 2008-03-05 12:51:35
|
2008/3/5, Bruno Picard <bp...@cl...>: > maybe you should have a look on plsxax and plsyax that set the number of digits for the respective axis labels. That worked, thanks! In fact I used plprec(1,1) but the idea is the same. Cheers, Kaj |
From: Kåre E. <ke...@ni...> - 2008-03-05 11:50:01
|
I'm not sure, but I think the "plenv ()" call wants 4 major ticks. If you use 2006 instead of 2005 it will work... This also goes for the "plwind ()" call, so I think it's a general thing that graphics bokses wants at least 4 major ticks to display proper. I agree it's a bug... Cheers, Kåre On Wed, 2008-03-05 at 12:41 +0200, Kaj Wiik wrote: > Forgot to mention library version: > 5.6.1-11ubuntu1 (gutsy) > > 2008/3/5, Kaj Wiik <kaj...@ik...>: > > Hi! > > > > There seems to be a bug in the algorithm that determines the numeric > > labes for axes. It is easier to show than explain.. This code: > > > > use PDL; > > use PDL::Graphics::PLplot; > > > > plinit(); > > plenv(2003, 2005, 2003, 2005, 0, 0); > > plend; > > > > produces these labels: > > > > | > > 2005 + > > | > > 2005 + > > | > > 2004 + > > | > > 2004 + > > | > > 2003 ----+--------+--------+--------+--------+--- > > 2003 2004 2004 2005 2005 > > > > I guess they should read "2003 2003.5 2004 2004.5 2005". > > > > Any suggestions? > > > > Thanks, > > > > Kaj > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general |