Re: [Matplotlib-users] Boxplots overlayed with plots

2009-05-11 Thread Eric Firing
C M wrote:
 On Mon, May 11, 2009 at 12:52 AM, Gökhan SEVER gokhanse...@gmail.com wrote:
 And the answer is:

 axis(xmin=..., xmax=...)

 Probably, that was a very easy question and no one wanted to answer :)

 Gökhan


 On Sun, May 10, 2009 at 4:12 PM, Gökhan SEVER gokhanse...@gmail.com wrote:
 Hello,

 I overlay bunch of boxplots with mean values shown as stars on each
 corresponding boxplot instance. (As could be seen in this image:
 http://img216.imageshack.us/img216/7528/boxplot.png.

 There is a minor thing that affects the appearance of the figure. That is
 1st and the last boxplots don't fit in the figure borders. How can I fix
 this? Do you have any suggestions?

 Thank you.

 Gökhan
 
 What is the difference between doing that or using something like:
 
 axes.autoscale_view(tight=False, scalex=True, scaley=True)
 
 I am under the impression that if tight=False, the plot does not
 autoscale to precisely the xlims, but leaves some margin.  Is
 that right?

Not necessarily--there is no guaranteed margin, although making such a 
margin a settable parameter has been in mind for a long time.  With 
tight=False, the autoscaling goes to the nearest ticks that include the 
data range, so depending on the data range and the tick intervals, there 
might be negligible margin.

Eric

 
 Che


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] how to put grid under the plot lines?

2009-05-11 Thread oh42

Pl see picture below. The grid always shows on top of the plot lines. Is it
possible to put it below?

Thanks!

http://www.nabble.com/file/p23474184/gridlines.gif 
-- 
View this message in context: 
http://www.nabble.com/how-to-put-grid-under-the-plot-lines--tp23474184p23474184.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how to put grid under the plot lines?

2009-05-11 Thread John Hunter
On Sun, May 10, 2009 at 4:22 PM, oh42 jagm...@yahoo.com wrote:

 Pl see picture below. The grid always shows on top of the plot lines. Is it
 possible to put it below?

When creating the axes or subplot, set axisbelow=True

  ax = fig.add_subplot(111, axisbelow=True)

There is an rc param 'axes.axisbelow' to change the default behavior
-- http://matplotlib.sourceforge.net/users/customizing.html

JDH

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] contourf/colorbar logarithmic value scale

2009-05-11 Thread Christian K .
Hi,

could someone please point me to an example which shows how to achieve a filled 
contour plot with a logarithmic value scale both for the contour data and the 
colorbar?

Thanks in advance, Christian



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Boxplots overlayed with plots

2009-05-11 Thread C M
On Mon, May 11, 2009 at 3:06 AM, Eric Firing efir...@hawaii.edu wrote:
 C M wrote:

 On Mon, May 11, 2009 at 12:52 AM, Gökhan SEVER gokhanse...@gmail.com
 wrote:

 And the answer is:

 axis(xmin=..., xmax=...)

 Probably, that was a very easy question and no one wanted to answer :)

 Gökhan


 On Sun, May 10, 2009 at 4:12 PM, Gökhan SEVER gokhanse...@gmail.com
 wrote:

 Hello,

 I overlay bunch of boxplots with mean values shown as stars on each
 corresponding boxplot instance. (As could be seen in this image:
 http://img216.imageshack.us/img216/7528/boxplot.png.

 There is a minor thing that affects the appearance of the figure. That
 is
 1st and the last boxplots don't fit in the figure borders. How can I fix
 this? Do you have any suggestions?

 Thank you.

 Gökhan

 What is the difference between doing that or using something like:

 axes.autoscale_view(tight=False, scalex=True, scaley=True)

 I am under the impression that if tight=False, the plot does not
 autoscale to precisely the xlims, but leaves some margin.  Is
 that right?

 Not necessarily--there is no guaranteed margin, although making such a
 margin a settable parameter has been in mind for a long time.  With
 tight=False, the autoscaling goes to the nearest ticks that include the data
 range, so depending on the data range and the tick intervals, there might be
 negligible margin.

 Eric

Useful to know, thanks.
Che

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with usetex \color

2009-05-11 Thread Jae-Joon Lee

 The resulting graph is not colored -- but in the directory
 ~/.matplotlib/tex.cache/ the text is green, both in the dvi and the png
 file!

 It therefore seems to me that this is not completely hopeless but I
 cannot figure out how to proceed.


As far as I know, in matplotlib, all the tex png output is treated as
grey  internally (the only exception I know of is ps backend, e.g.,
your example will show you a correct color if you save it as ps). I
guess this may have been a design decision.
As far as I can see, MPL currently does not support texts with varying
font properties (size, color, font).
One possible workaround for this could be using the latex typesetting
as you tried. However, supporting this within the current text
framework of matplotlib would be difficult and may not be a good idea.


However, I guess there are a few workarounds you may consider to use
(but unfortunately I think none of them are easy to work with). So, if
you describe where you intend to use multi-color text, I'll try to
give some example appropriate for your situation. Multi-color text in
figure title or simple annotation would be relatively simple.
Multi-color text in legend label seems to be more difficult, but
should be doable.

-JJ

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how to put grid under the plot lines?

2009-05-11 Thread oh42

awesome! exactly what i needed. thanks a bunch!
-- 
View this message in context: 
http://www.nabble.com/how-to-put-grid-under-the-plot-lines--tp23474184p23494506.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users