Re: [Matplotlib-users] continous colormap with 'plateau'

2009-05-12 Thread Christian K.
Eric Firing schrieb: > Christian K. wrote: >> Hi everyone, >> >> is it possible to map a certain range within the value-range of a image plot >> to >> a constant value? Currently I am overlaying a filled contour plot with just >> two >> contour levels on top of an image plot. This works, but I

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
I zoomed into the plot to see if the whiskers are usually being plotted. There seems like a vertical line plotted over lower part of the boxplot, however not in the right place. I am attaching the simple text file that has the quartile values in it. I run ipython --pylab and do the following for a

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Josh Hemann
Gökhan SEVER-2 wrote: > > For some reason on boxplot 3 and 5 on the figure I get fliers instead of > whiskers on the lower parts. > When I look closely at your graphic it looks to me like the lower whiskers are in fact being plotted, but just (essentially) overlayed on lower quartile part of

[Matplotlib-users] thick lines on top of each other

2009-05-12 Thread Brian Lewis
Hi, I'm trying to plot two thick lines that are separated only by a constant. import matplotlib.pyplot as plt import numpy as np shift = .1 x = np.linspace(0,10,100) y1 = np.sin(x) y2 = y1 + shift lw = 10 alpha = .8 plt.plot(x, y1, linewidth=lw, alpha=alpha) plt.plot(x, y2, linewidth=lw, alpha=al

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
I can't tell easily about the distribution of data points looking at histograms, since I am calling boxplot as in following notation: In [32]: d[2][8:] Out[32]: array([98.2507, 99.6293, 100.0359, 100.1859, 100.4691]) Here the elements of my array are 5th, 25, 50, 75, 95th percentile of the or

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Stephen George
Why don't you perform a histogram on the data that produced that boxplot, .. seeing the shape of that histogram may answer your own question. Is it skewed or normal distribution? Gökhan SEVER wrote: > Hello, > > I construct my boxplots (shown in this figure: > http://img204.imageshack.us/img20

Re: [Matplotlib-users] Autoscale embedding in gtk + dynamical update of plot + Y log scale

2009-05-12 Thread John Hunter
On Tue, May 12, 2009 at 12:11 PM, Sandro Tosi wrote: > Hi All, > I'd like to renew this request below. > > I've worked-around this problem setting xlim/ylim (as min/max of the > relative axis) right before redraw the figure, but I'd like to know > for a more elegant solution. > > Thanks in advance

[Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Gökhan SEVER
Hello, I construct my boxplots (shown in this figure: http://img204.imageshack.us/img204/7518/boxplot2.png) using 5th, 25th, 50th, 75th, 95th percent of my data explicitly. For some reason on boxplot 3 and 5 on the figure I get fliers instead of whiskers on the lower parts. Do you have any idea w

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

2009-05-12 Thread Jae-Joon Lee
On Tue, May 12, 2009 at 5:55 AM, Sebastian Busch wrote: > f.text(0.5, 0.5, r"{\color[rgb]{0,1,0} a } b") > --> gives only a green "a" > Hmm, odd. It gives me both letters in their correct color. Please post your result with the script you used to create it. And, what version of mpl are you using

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

2009-05-12 Thread Jae-Joon Lee
On Tue, May 12, 2009 at 5:04 AM, Matthias Michler wrote: > Hello list, > > I'm not sure that following problem also occurs for Sebastian, but if I use > PS-backend in the below script I get the attached output, where the upper > part of the b is somehow hidden (matplotlib-version 0.98.6svn). > Is

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

2009-05-12 Thread Jae-Joon Lee
As Jouni suggested, I guess the best chance here is to use phantom command. Here is a little example. rc('text', usetex=True) p1, = plot([1,2,3]) legend([p1, p1, p1, p1], [r"d = $\phantom{0}1$ m", "d = $10$ m", "d = $23$ m", "d = $91$ m"]) -JJ On Tue, May 12, 2009 at 6:52 AM, Jouni K. S

Re: [Matplotlib-users] Autoscale embedding in gtk + dynamical update of plot + Y log scale

2009-05-12 Thread Sandro Tosi
Hi All, I'd like to renew this request below. I've worked-around this problem setting xlim/ylim (as min/max of the relative axis) right before redraw the figure, but I'd like to know for a more elegant solution. Thanks in advance, Sandro On Sun, May 10, 2009 at 23:31, Sandro Tosi wrote: > Hi Al

Re: [Matplotlib-users] Total noob question. How to start Matplotlib

2009-05-12 Thread Sandro Tosi
Hello Homer (even if I would have rather called you with your proper name) On Tue, May 12, 2009 at 02:30, (_8*(l)Homer wrote: > Like the title of the post says, this is a totally noobie question.  I have > an older system running Kubuntu 7.04 with Matplotlib 0.90.0 and for the life > of me, I can

[Matplotlib-users] Total noob question. How to start Matplotlib

2009-05-12 Thread (_8*(l)Homer
Like the title of the post says, this is a totally noobie question. I have an older system running Kubuntu 7.04 with Matplotlib 0.90.0 and for the life of me, I can't figure out how to start the program. Any help would be apprecieated. Once again, sorry for the Noob question of the day. Joe

Re: [Matplotlib-users] continous colormap with 'plateau'

2009-05-12 Thread Eric Firing
Christian K. wrote: > Hi everyone, > > is it possible to map a certain range within the value-range of a image plot > to > a constant value? Currently I am overlaying a filled contour plot with just > two > contour levels on top of an image plot. This works, but I would like to > display > t

Re: [Matplotlib-users] figuresize and dpi

2009-05-12 Thread Jouni K . Seppänen
Chaitanya Krishna writes: > I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then > plot the figure and save it as both a png and an eps. When you save as png, you can set the dpi, and if you use e.g. 100, the figure will be 700 pixels wide; if you use 75, it will be 525 pixels

Re: [Matplotlib-users] figuresize and dpi

2009-05-12 Thread Alan G Isaac
On 5/12/2009 9:57 AM Chaitanya Krishna apparently wrote: > I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then > plot the figure and save it as both a png and an eps. > If I then measure the size of the figure as displayed (displayed with > 0 zoom) on the computer screen with a r

[Matplotlib-users] Qt backend in QMdiArea

2009-05-12 Thread Magnus Benjes
The class matplotlib.backends.backend_qt4agg.FigureCanvasQTAgg works well in a QWorkspace. But when I put it in a QMdiArea the resizing slows down. In Qt 4.5 the class QWorkspace is deprecated. The class QMdiArea should be used instead. In the attached code you can see the difference in the perfo

[Matplotlib-users] figuresize and dpi

2009-05-12 Thread Chaitanya Krishna
Hi all, I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then plot the figure and save it as both a png and an eps. If I then measure the size of the figure as displayed (displayed with 0 zoom) on the computer screen with a ruler, it does not measure 7 in. Why is it so? Am I doin

[Matplotlib-users] continous colormap with 'plateau'

2009-05-12 Thread Christian K .
Hi everyone, is it possible to map a certain range within the value-range of a image plot to a constant value? Currently I am overlaying a filled contour plot with just two contour levels on top of an image plot. This works, but I would like to display the plateau in the colorbar as well, so th

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

2009-05-12 Thread Jouni K . Seppänen
Sebastian Busch writes: > I would have liked to get an aligned legend, like > > d = 9m > d = 10m > > In order to achieve that, i was trying to print a white (=invisible) "1" > whenever the number was smaller than 10 as spaceholder (I do not want to > use a monospaced font). Does the \phantom t

Re: [Matplotlib-users] contourf/colorbar logarithmic value scale

2009-05-12 Thread Christian K .
Christian K. writes: > > 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 > I just noticed that this has been discussed recen

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

2009-05-12 Thread Sebastian Busch
Hey Matthias! Thanks for working on that! Matthias Michler wrote: > ... I'm not sure that following problem also occurs for Sebastian, ... it does. > ... PS-backend ... the upper part of the b is somehow hidden ... > f.text(0.5, 0.5, r"{\color[rgb]{0,1,0} a } b {\color{blue} $\nu, \mu, \tau$}")

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

2009-05-12 Thread Sebastian Busch
Hey Jae-Joon! Thank you for your answer! Jae-Joon Lee wrote: > ...your example will show you a correct color if you save it as ps... Indeed the ps output is colored! That's great :) > ... describe where you intend to use multi-color text ... OK, you got me -- actually, this was already a hac

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

2009-05-12 Thread Matthias Michler
Hello list, I'm not sure that following problem also occurs for Sebastian, but if I use PS-backend in the below script I get the attached output, where the upper part of the b is somehow hidden (matplotlib-version 0.98.6svn). Is this a problem of matplotlib or did I miss something in the tex-han