Re: [Matplotlib-users] How by clicking an axes label open a dialog?

2010-12-01 Thread Matthias Michler
On Thursday September 9 2010 20:33:03 sa6113 wrote: > I want to use backendQtAgg inorder to imbed plot dialog into basic dialog > and by clicking the labels open plot option. > I couldn't use 'motion_notify_event' because the event only handles into > plot area not in canvas area!!! > anybody knows

Re: [Matplotlib-users] adding a "number of minor tick marks between major tick marks" feature

2010-11-30 Thread Matthias Michler
On Monday November 29 2010 22:01:29 Matthew W. Priddy wrote: > Matplotlib developers, > > I really like using matplotlib to create quality plots, and it seems to > have an option for just about everything. However, one thing that is not > easy to change is the location of minor tick marks. To se

[Matplotlib-users] problem / bug with LogLocator in rev8732

2010-10-07 Thread Matthias Michler
Hello list, I run into trouble with the resent svn version using logarithmic scaling as before. This is probably due to the changes from rev 8730 to 8732, where in the ticker,py the line ticklocs = self._transform. ... was added. Running my program I get the following AttributeError: File

Re: [Matplotlib-users] problem / bug with LogLocator in rev8732

2010-10-07 Thread Matthias Michler
On Thursday October 7 2010 12:06:26 Matthias Michler wrote: > Hello list, > > I run into trouble with the resent svn version using logarithmic scaling as > before. This is probably due to the changes from rev 8730 to 8732, where in > the ticker,py the line > > tickl

Re: [Matplotlib-users] Pie Charts, How to control pie chart size in figure?

2010-08-11 Thread Matthias Michler
On Tuesday August 10 2010 20:31:02 Michael Waters wrote: > Hi, I am making a simple pie chart that needs to be small ~3x3 inches. > The problem I am having is that the text labels get pushed out side the > figure. Is there anyway to make the plot smaller relative to the figure > size? Here is my co

Re: [Matplotlib-users] share axis and rotate subplot

2010-07-29 Thread Matthias Michler
On Thursday July 29 2010 12:05:24 Bala subramanian wrote: > Friends, > I wrote a small script to plot a data and its pdf in single figure but as > two subplots. > > 1) However i want to share xaxis of ax2 (subplot 122) with the y axis of > ax1 (subplot 121). What function should i use do that. I t

Re: [Matplotlib-users] Hz to KHz

2010-07-29 Thread Matthias Michler
On Monday July 26 2010 18:23:29 Waléria Antunes David wrote: > Hello all, > > I need to format the values of graphic to KHz.my values are in Hz > see at idle python it displays the values as: 3000 3050 3100 3400 , > but I need to go where it will be displayed KHz: 3.0 3.1 > > can someon

Re: [Matplotlib-users] how to plot the empirical cdf of an array?

2010-07-09 Thread Matthias Michler
On Friday July 9 2010 06:02:58 per freem wrote: > How can I plot the empirical CDF of an array of numbers in matplotlib > in Python? I'm looking for the cdf analog of pylab's "hist" function. > > One thing I can think of is: > > from scipy.stats import cumfreq > a = array([...]) # my array of num

Re: [Matplotlib-users] ValueError

2010-07-09 Thread Matthias Michler
On Friday July 9 2010 00:06:05 Shir J. Livne wrote: > Hello, > > I keep getting the error "ValueError: Need more than 1 value to unpack" > every time I try to use the line ax.plot_wireframe(myArray[:,0], > myArray[:,1], myArray[:,2]) > > What does that error mean? Hi Shir, I think you used 1d-a

Re: [Matplotlib-users] NonUniformImage: problem with axis reversal

2010-07-06 Thread Matthias Michler
On Wednesday July 7 2010 05:53:59 jezhill wrote: > Hi all, > > I've been experimenting with the NonUniformImage class. (Actually I want > *uniform* pixel spacing, but I want the image x and y coordinates to have > the correct *scaling* in the style of Matlab's image(x,y,C). The > AxesImage clas

Re: [Matplotlib-users] how to remove a part of the legend ?

2010-07-01 Thread Matthias Michler
On Wednesday, June 30, 2010 06:24:12 pm Philippe Crave wrote: > Hello, > > I have a subplot with 4 lines. > I display the legend. > I can remove a line easily with something like del(self.ax.lines[n]). > But how can I remove the line in the legend ? > > I found that I can remove all the lines, ad

Re: [Matplotlib-users] matplotlib in interactive mode from a script

2010-06-30 Thread Matthias Michler
On Tuesday, June 29, 2010 03:32:00 pm ninjasmith wrote: > hi there, > > I've got a bit stuck with running matplotlib in interactive mode. maybe > what I want to do can't be done easily. > > want I want is a simple python script which I can run with a file argument. > this will then create some p

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Matthias Michler
On Tuesday, June 22, 2010 10:03:06 am Eric Firing wrote: > On 06/21/2010 09:28 PM, Matthias Michler wrote: > > On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: > >> On 06/21/2010 06:10 AM, Matthias Michler wrote: > >>> Hello list, > >>> > &g

Re: [Matplotlib-users] problem with RectangleSelector

2010-06-22 Thread Matthias Michler
On Monday, June 21, 2010 06:30:04 pm Eric Firing wrote: > On 06/21/2010 06:10 AM, Matthias Michler wrote: > > Hello list, > > > > I'm encountering a strange problem with the RectangleSelector using the > > latest version of svn. Namely it doesn't wo

[Matplotlib-users] problem with RectangleSelector

2010-06-21 Thread Matthias Michler
Hello list, I'm encountering a strange problem with the RectangleSelector using the latest version of svn. Namely it doesn't work if it wasn't initialized as RS = RectangleSelector(...) but using RectangleSelector(...) in my script. I modified the example rectangle_selector.py from the folder e

Re: [Matplotlib-users] displaying multiple images in series

2010-06-21 Thread Matthias Michler
Hi Daniel, show should be called only once in a script (see also: http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=show#use-show) and it starts the mainloop, in which the user may interact with the plot using for instance button or key press events like in my second example. Whene

Re: [Matplotlib-users] displaying multiple images in series

2010-06-15 Thread Matthias Michler
On Monday, June 14, 2010 10:32:48 pm Daniel Jones wrote: > Hi matplotlib users, > > I'm trying to write a script to loop through a bunch of tiff files, > display each image, and choose to accept or reject each image. > Something like: > > for f in files: >im = imread(f) >imshow(im) >#

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-10 Thread Matthias Michler
On Thursday, June 10, 2010 09:57:44 am Eric Firing wrote: > On 06/09/2010 09:15 PM, Matthias Michler wrote: > > On Wednesday, June 09, 2010 08:00:13 pm Eric Firing wrote: > >> On 06/08/2010 11:07 PM, Matthias Michler wrote: > >>> On Wednesday, June 09, 2010 11:00:31 a

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-10 Thread Matthias Michler
On Wednesday, June 09, 2010 08:00:13 pm Eric Firing wrote: > On 06/08/2010 11:07 PM, Matthias Michler wrote: > > On Wednesday, June 09, 2010 11:00:31 am Eric Firing wrote: > >> On 06/08/2010 10:48 PM, Matthias Michler wrote: > >>> On Friday, April 23, 2010 11:0

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-09 Thread Matthias Michler
On Wednesday, June 09, 2010 11:00:31 am Eric Firing wrote: > On 06/08/2010 10:48 PM, Matthias Michler wrote: > > On Friday, April 23, 2010 11:08:50 am Matthias Michler wrote: > >> Hello list, Hello developers, > >> > >> I'd like to summarize my d

Re: [Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-06-09 Thread Matthias Michler
On Friday, April 23, 2010 11:08:50 am Matthias Michler wrote: > Hello list, Hello developers, > > I'd like to summarize my discussion with Gökhan ("Turning off minor grids > on log scaled plot") in the last days and propose two patches. > > The first patch adds

[Matplotlib-users] problem with annotate

2010-06-04 Thread Matthias Michler
Hello list, I'm encountering a problem with annotate using the latest svn and GTKAgg- backend. I plot several annotate-arrows in my script, but some of them aren't saved to the eps/pdf - file. More precisely the lower left arrow in the attached example, who touches the lower (negative) boundary

Re: [Matplotlib-users] semilogy with dates on x?

2010-05-14 Thread Matthias Michler
On Thursday, May 13, 2010 12:31:08 am Alan G Isaac wrote: > What is the preferred method to do the equivalent of plot_date > with log scaling for the non-date values? > > Thanks, > Alan Isaac Hi Alan, What about using 'plot_date' ans scaling the y-axis by hand? In the example 'date_demo1.py' you

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread Matthias Michler
On Sunday 02 May 2010 20:19:29 aditya bhargava wrote: > Is there a straightforward way of plotting a vector in matplotlib? Suppose > I want to plot the vector [1 2]'. If I pass this vector in to plot(), I get > the line that passes through (0,1), (1,2). Instead I want the line that > passes through

Re: [Matplotlib-users] Horizontal and vertical lines between subplots

2010-04-30 Thread Matthias Michler
On Wednesday 28 April 2010 15:07:21 Maxime Bois wrote: > Hi all, > > I have created a figure with 4 subplots (2x2) and I want to separate > them with a vertical and horizontal lines (see the green lines on my > figure edited by Gimp) but I don't know if it's possible (I haven't find > any example o

Re: [Matplotlib-users] plotyy equivalent example -- png output

2010-04-29 Thread Matthias Michler
On Thursday 29 April 2010 15:02:34 James Jack wrote: > Below is the working code to plot two different data series with different > units on the same graph, with the same x co-ordinates: > > > > import pylab > # generate some data > x = range(0, 10) > y1 = [i*i for i in x] > y2 = [pylab.sin(0.4*i)

Re: [Matplotlib-users] bug in ContourSet and additional kwargs

2010-04-28 Thread Matthias Michler
On Wednesday 28 April 2010 09:21:54 Eric Firing wrote: > Matthias Michler wrote: > [...] > > > First of all I think my previously described error in the over-color is > > due to a bug in the set up of the colors.ListedColormap during the > > initialisation of Contour

[Matplotlib-users] bug in ContourSet and additional kwargs

2010-04-27 Thread Matthias Michler
Hello list, Hi Eric, I stumbled upon the old thread "ploting matrix data" and the changes in my mpl-svn working copy allowing to provide under_color and over_color as a keyword argument of contourf. On Tuesday 14 April 2009 20:39:06 Eric Firing wrote: > Matthias Michler

Re: [Matplotlib-users] Setting color of both major and minor gridlines?

2010-04-27 Thread Matthias Michler
On Monday 26 April 2010 18:59:41 KrishnaPribadi wrote: > Peter Buschman-2 wrote: > > I ended up finding a solution to this by using a FixedLocator and > > manually setting each of the tick > > positions for both major and minor grids without overlap. > > > > I'm not sure if this is the recommended

Re: [Matplotlib-users] patch: adding kwargs 'which ' in axes.grid and 'g' toggles all tick g rid lines

2010-04-27 Thread Matthias Michler
rley-Davidson Motor Co. > > Talladega Test Facility > > Vehicle Test Stands (VTS) > > -Original Message- > From: Matthias Michler [mailto:matthiasmich...@gmx.net] > Sent: Friday, April 23, 2010 4:09 AM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matpl

[Matplotlib-users] patch: adding kwargs 'which' in axes.grid and 'g' toggles all tick grid lines

2010-04-23 Thread Matthias Michler
Hello list, Hello developers, I'd like to summarize my discussion with Gökhan ("Turning off minor grids on log scaled plot") in the last days and propose two patches. The first patch adds the keyword argument 'which' from the axis.grid to the method 'grid' of the Axes (axes_grid_for_major_and_m

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-22 Thread Matthias Michler
On Wednesday 21 April 2010 19:06:09 Gökhan Sever wrote: > On Wed, Apr 21, 2010 at 4:39 AM, Matthias Michler > > wrote: > > I think it works like expected, i.e. it toggles the state of showing grid > > lines for minor and major ticks. > > The problem it the case were peop

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-21 Thread Matthias Michler
On Wednesday 21 April 2010 08:10:00 Gökhan Sever wrote: > On Tue, Apr 20, 2010 at 11:11 AM, Gökhan Sever wrote: > > On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler > > > > > > wrote: > >> > >> Hi Gökhan, > >> > >> thanks

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-04-20 Thread Matthias Michler
On Wednesday 17 March 2010 15:58:11 Matthias Michler wrote: > On Wednesday 17 March 2010 15:05:32 John Hunter wrote: > > On Wed, Mar 17, 2010 at 4:10 AM, Matthias Michler > > > > wrote: > > > once more I'd like to ask for comments about my feature request and &

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-20 Thread Matthias Michler
On Monday 19 April 2010 20:36:15 Gökhan Sever wrote: > On Mon, Apr 19, 2010 at 1:31 AM, Matthias Michler > > wrote: > > On Sunday 18 April 2010 00:52:57 Gökhan Sever wrote: > > > Hello, > > > > > > Let say we have a figure created by: > > > &

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-18 Thread Matthias Michler
On Sunday 18 April 2010 00:52:57 Gökhan Sever wrote: > Hello, > > Let say we have a figure created by: > > plt.plot(range(100)) > > On WX backend plt.grid(1) or key "G" responds finely for turning on/off the > grid lines. However when I log-scale both axes then plt.grid(1 or 0) or "G" > doesn't res

Re: [Matplotlib-users] possible to specify RGB in set_under or set_over?

2010-04-16 Thread Matthias Michler
On Friday 16 April 2010 16:49:05 Dr. Phillip M. Feldman wrote: > I would like to specify the colors to be used for plotting out-of-range > values via RGB triples rather than color name strings. Is this possible? With matplotlib-svn it works for me. What version of mpl are you using? Kind regards

Re: [Matplotlib-users] color and transparency in overlapping regions

2010-04-13 Thread Matthias Michler
On Tuesday 13 April 2010 16:37:21 hettling wrote: > Dear all, > > I want to plot 3 overlapping regions using fill() into one panel, but my > solution looks sort of messy... Here is the code: [...snip...] > The figure looks like 4 regions are plotted, because overlapping red and > yellow make an ora

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-04-06 Thread Matthias Michler
On Wednesday 17 March 2010 15:58:11 Matthias Michler wrote: > On Wednesday 17 March 2010 15:05:32 John Hunter wrote: > > On Wed, Mar 17, 2010 at 4:10 AM, Matthias Michler > > > > wrote: > > > once more I'd like to ask for comments about my feature request and &

Re: [Matplotlib-users] Change axis's scale

2010-04-01 Thread Matthias Michler
On Thursday 01 April 2010 12:27:59 timothee cezard wrote: > Hi all, > I have several graph to create and the position on the x axis can vary > quite a lot. > Most of the time I'm quite happy with the default behavior but when my x > values are very high matplotlib automatically change the ticks and

Re: [Matplotlib-users] How to remove white space

2010-04-01 Thread Matthias Michler
On Thursday 01 April 2010 09:41:06 yogesh karpate wrote: > Dear All, >I have one .png image of 940X780 and i am plotting waveforms > on it. When I save this plot as .png , matp[lotlib gives image in > 800X600 that too with white space. I dont want to keep the white space and > i wan

Re: [Matplotlib-users] How to save file in to image in desired resolution in matplotlib?

2010-03-31 Thread Matthias Michler
On Wednesday 31 March 2010 09:24:10 yogesh karpate wrote: > Dear All, >I am using one image of 235X130 and plotting the curve on > it, now when i save it it goes in the resoltuion of 800X600, > I want to keep the resolution intact.What can be done for that to keep the > resolution

Re: [Matplotlib-users] problem with minorticks

2010-03-30 Thread Matthias Michler
On Monday 29 March 2010 19:53:00 yogesh karpate wrote: > Dear All, > I want to make minor ticks working in following program. > Here only major ticks are dis[played in grpah though i have declared the > minor ticks > minorticks_on() doesnt work in my code. How to fix that.Please he

Re: [Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Matthias Michler
On Monday 29 March 2010 13:56:51 Atomfried wrote: > Hi, > > is it possible to perform a surface plot a NxM matrix with date-axes? > Similar to plot_date for 1D-Plots. The dates are available as an N-sized > (or M-sized) array of float values. > > At the moment, I am using imshow or matshow for the

Re: [Matplotlib-users] Issues with imshow

2010-03-29 Thread Matthias Michler
On Monday 29 March 2010 01:51:30 Sunman wrote: > Hello, > > I am trying to use the imshow() function for a 2-dimensional array. > > However, I am having issues with the following: When the array is perfectly > square the image looks like this: > > http://old.nabble.com/file/p28063442/Plot2.png > >

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-03-17 Thread Matthias Michler
On Wednesday 17 March 2010 15:05:32 John Hunter wrote: > On Wed, Mar 17, 2010 at 4:10 AM, Matthias Michler > > wrote: > > once more I'd like to ask for comments about my feature request and > > proposed patch. > > Should I post it at the 'feature request&#x

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-03-17 Thread Matthias Michler
On Thursday 04 March 2010 09:43:40 Matthias Michler wrote: > On Wednesday 03 March 2010 19:10:10 Matthias Michler wrote: > > Hello list, > > > > I'd like to bring something back, which was discussed in sep-dec 2008 > > "OSX 10.5 event.key bug", whi

Re: [Matplotlib-users] how can I show some figures, but not others?

2010-03-16 Thread Matthias Michler
On Tuesday 16 March 2010 14:17:26 Nick Schurch wrote: > I have a script that calls several subroutines, each of which makes a > different figure. One of these routines makes lots of figures for use > in a webpage, all of which are saved as they are made. When I call > show() at the end of the scrip

Re: [Matplotlib-users] Making an Axis Label like a legend

2010-03-09 Thread Matthias Michler
On Tuesday 09 March 2010 21:10:49 Alex S wrote: > Hmm I think I could do this with TextWithDash, but I can't manage to use > it... I go: > > CumGasTxt = fig.text(0.5, 0.5, 'Cumulative Gas (MCF)', withdash=True) > > and it says "AttributeError: Unknown property withdash". > > I tried changing "fig"

Re: [Matplotlib-users] how to insert a part of a plot in the same figure

2010-03-04 Thread Matthias Michler
On Thursday 04 March 2010 17:11:54 kamaleon wrote: > Thanks Matthias, this seems help me. > But how to remove the xlabel, ylable and the tilte in the subplot? > Cheers > > Matthias Michler wrote: > > On Thursday 04 March 2010 13:35:12 kamaleon wrote: [...] Hi , what do you m

Re: [Matplotlib-users] how to insert a part of a plot in the same figure

2010-03-04 Thread Matthias Michler
On Thursday 04 March 2010 13:35:12 kamaleon wrote: > Hey All, > > I have a fig, see attach image. I am plotting the number of infected nodes > versus time. Time is running from 0 to 100. > I need to insert a subplot in that figure that shows me the number of > infected nodes for time running from 0

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-03-04 Thread Matthias Michler
On Wednesday 03 March 2010 19:10:10 Matthias Michler wrote: > Hello list, > > I'd like to bring something back, which was discussed in sep-dec 2008 "OSX > 10.5 event.key bug", which was initially posted by James Schombert. > > Did I miss any development in this fi

[Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-03-03 Thread Matthias Michler
Hello list, I'd like to bring something back, which was discussed in sep-dec 2008 "OSX 10.5 event.key bug", which was initially posted by James Schombert. Did I miss any development in this field? I tried to implement the latest proposal, which allows you to switch off the mpl-axes-interactio

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread Matthias Michler
On Wednesday 03 March 2010 17:30:52 John Hunter wrote: > On Wed, Mar 3, 2010 at 10:25 AM, Matthias Michler > > wrote: > > On Wednesday 03 March 2010 17:02:58 John Hunter wrote: > >> On Wed, Mar 3, 2010 at 9:56 AM, Matthias Michler > >> > >> wrot

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread Matthias Michler
On Wednesday 03 March 2010 17:02:58 John Hunter wrote: > On Wed, Mar 3, 2010 at 9:56 AM, Matthias Michler > > wrote: > > I attached a patch with modified documentation and further replacements > > of 'get_bounds' in current svn. Could any of the developers have a

[Matplotlib-users] error, when calling "ax.redraw_in_frame()"

2010-03-03 Thread Matthias Michler
Hello list, I get an error, when calling "ax.redraw_in_frame()" (see below). I think this is due to the fact that the draw_wrapper expects args instead of kwargs for the "draw" of an Axes instance and therefore provide a patch, which adds an additional star. Could any of the developers have a

Re: [Matplotlib-users] Artist tutorial different response

2010-03-03 Thread Matthias Michler
On Saturday 27 February 2010 07:39:59 David Arnold wrote: > All, > > On: http://matplotlib.sourceforge.net/users/artists.html > > In the Axes Container section, you can see in what follows that I got some > very different responses than what is shown on the page: > > In [1]: fig=figure() > > In [3]

Re: [Matplotlib-users] Comma in LaTeX preamble

2010-03-03 Thread Matthias Michler
On Tuesday 02 March 2010 22:24:30 Heiko Bauke wrote: > Hi, > > I use the text.latex.preamble rc setting to customize my plots. > Everything works fine. However, a comma in this rc setting is > interpreted as a new-line, thus, I wonder how can I create a LaTeX > preamble that contains a comma? The s

Re: [Matplotlib-users] arrows in contour lines?

2010-02-26 Thread Matthias Michler
On Thursday 25 February 2010 19:55:22 Nico Schlömer wrote: > Hi all, > > I'd like to make a countour plot just like in > > http://matplotlib.sourceforge.net/examples/pylab_examples/contour_demo.html > > but instead of text at the contour lines I'd like to have arrows in > the in the direction of th

Re: [Matplotlib-users] Cannot draw bar chart with log scale

2010-02-25 Thread Matthias Michler
t; w = width > rect, = ax.bar(l, h, w, bottom=0, fill=False, hatch=patterns[n], > log=True) > > > draw() Hi if I replace bottom=0 with bottom=10**-3 in your script I see bars. Kind regards, Matthias Michler --

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Matthias Michler
On Wednesday 24 February 2010 00:45:56 David Goldsmith wrote: > Hi! I'm trying to loop through all the built-in colormaps, applying each > to an image before printing it to a file, then moving on to the next one. > > >>> from matplotlib import cm > >>> for cmap in dir(cm): # cmap in cm doesn't wor

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-02-17 Thread Matthias Michler
On Wednesday 17 February 2010 15:28:24 John Hunter wrote: > On Wed, Feb 17, 2010 at 8:08 AM, Matthias Michler > > wrote: > > Hi list, Hi Gökhan, > > > > I once more would like to say that I like the 2 new features introduced > > by Gökhan (key 'k' for x

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-02-17 Thread Matthias Michler
lp in order to bring this into matplotlib. Kind regards, Matthias On Tuesday 02 February 2010 14:05:52 Matthias Michler wrote: > Hi Gökhan, > > I'm sorry I didn't had the time to look into your patch in the last days. > > Today I did have a look at it and in my opinion you

Re: [Matplotlib-users] forcing a plot to appear

2010-02-16 Thread Matthias Michler
Hi Ken, On Monday 15 February 2010 20:35:06 Ken Dere wrote: > Hi, > > I am trying to develop an application that I can run inside the ipython > shell. One of my methods creates a plot, asks the user to make a choice > based on that plot, and then creates another plot that displays the chosen > se

Re: [Matplotlib-users] tick labels in colorbar?

2010-02-15 Thread Matthias Michler
On Monday 15 February 2010 09:28:10 Nico Schlömer wrote: > Hi, > thanks for the suggestion. > > > ax.set_xticks((-pi,pi)) > > ax.set_xticklabels(('$-\pi$','$\pi$')) > > I guess color bars are a little special in the sense that > >AttributeError: Colorbar instance has no attribute 'set_yticklabe

Re: [Matplotlib-users] How to draw a rectangle using event handler ?

2010-02-15 Thread Matthias Michler
Hi Yagua, On Friday 12 February 2010 17:04:27 Yagua Rovi wrote: > Hello world! > I am displaying on my screen a set of data corresponding to points > defined by a longitude and latitude. > The display is fine with the command imshow (mydata ,...) > > I would like now associate to the application

Re: [Matplotlib-users] Selectable contour(f) divisions

2010-02-12 Thread Matthias Michler
elp of IPython to investigate the doc-strings of matplotlib-functions. The input "contour?" tells me :: contour(Z,V) contour(X,Y,Z,V) draw contour lines at the values specified in sequence *V* Kind regards, Matthias > Thanks so much! > > Bruce > On

Re: [Matplotlib-users] Selectable contour(f) divisions

2010-02-12 Thread Matthias Michler
Hi Bruce, why don't you use contour as in the following ;-) contour(X,Y,Z,V) # -> draw contour lines at the values specified in sequence *V* like in x, y = np.meshgrid(np.linspace(0, 1, 100), np.linspace(0, 1, 50)) z = x**4 - x**2 + np.sin(y) contour(x, y, z, [-0.2, 0.0, 0.2, 0.4, 0.6, 0.8])

Re: [Matplotlib-users] Maximize plotwindow & hot to plot figure by figure?

2010-02-12 Thread Matthias Michler
On Friday 12 February 2010 00:36:41 zxc wrote: > 2 Problems: > > 1. How is it possible to maximize the window of the plot? If the window is open and you are in the mainloop ypu can press ' f ' for fullscreen mode. Furthmore you can modify the figure-size by figure(figsize=(16, 8)) > 2. First I w

Re: [Matplotlib-users] help with view_limits

2010-02-10 Thread Matthias Michler
Hi Che, I think turning off autoscaling is what you need: import matplotlib.pyplot as plt ax = plt.subplot(111, autoscaley_on=False, ylim=(0, 100)) plt.plot([1, 2], [-40, 40]) plt.show() Kind regards, Matthias On Monday 08 February 2010 20:49:50 C M wrote: > I'd like to set the ticks on the y a

Re: [Matplotlib-users] his problems...

2010-02-10 Thread Matthias Michler
On Tuesday 09 February 2010 17:38:18 Nick Schurch wrote: > HI all, > > I've been using matplotlip for a while now but mainly for line plots, > scatter plots and the odd dendrogram. I recently tried plotting a > histogram (of a binomial function) and encountered a problem. So I > though I'd try the

[Matplotlib-users] problem with Axes3D.cla

2010-02-02 Thread Matthias Michler
Hello list, I encounter a problem with the method Axes3D.cla. I'm running the follwing lines in "ipython -pylab" from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = Axes3D(fig) draw() Then I do have a Axes3D, in which I can perform zooming with left and right mouse button. If I now

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-02-02 Thread Matthias Michler
doesn't toggle full-screen --using qt4agg backend. > > > > There are a couple function duplicates. (eg. back with 'c' and left and > > backspace keys. How can represent them? Create a list inside the > > dictionary? > > back = ['c', 'left&

Re: [Matplotlib-users] defining/saving contours without plotting

2010-01-27 Thread Matthias Michler
Hi Jon, one thing you can do is to get the (x, y)-values of the calculated contourlines: cs = plt.contour(z, levels=[0]) a = cs.collections[0].get_paths()[0].vertices # -> array of shape (..., 2) hold x and y in first and second column I don't know wheter this is the best way, but at least for

Re: [Matplotlib-users] plot coordinates points

2010-01-27 Thread Matthias Michler
Hi, do you mean a single point with coordinates x and y like plot([1.2], [2.5], marker='+') Regards, Matthias On Wednesday 27 January 2010 17:26:39 franck kalala wrote: > Hey all > > how to plot a point coordinates in matplotlib? > I want for example to plot the point of > coordinates x=1.2,y

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Matthias Michler
backspace keys. How can represent them? Create a list inside the > > dictionary? > > back = ['c', 'left', 'backspace'] > > > > 'o' seems like unnecessary. Since you have to select an area using mouse. > > > > 's' doesn't

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-25 Thread Matthias Michler
e provided in the matplotlibrc file. Users can > make their key mapping based on their choice. That requires some more > coding > > :) > > On Fri, Jan 22, 2010 at 1:59 AM, Matthias Michler > > wrote: > > Hi Gökhan, Hi list members, > > > > This is really a

Re: [Matplotlib-users] Newb question - multiple colors in bar chart

2010-01-25 Thread Matthias Michler
Hi Jeff, you can do something like the following and specify the color for each bar by providing a list of colors for the keyword argument 'color'. import numpy as np import matplotlib.pyplot as plt # generate some data left = np.arange(6) height = np.random.uniform(size=6) # plot 3 blue and 3

Re: [Matplotlib-users] Assigning "k" key for xscaling

2010-01-21 Thread Matthias Michler
Hi Gökhan, Hi list members, This is really a missing feature in matplotlib in my opinion and it's great that you took the time to make an suggestion, but I would prefer capital "L" for the xaxis-scaling like gnuplot although I'm not sure this is possible. What do you and other list members thi

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Matthias Michler
Hey Matt, Hello list, I'm sorry, I'm not an expert in eps-graphics. For me the final pics look good and I have no idea what is different between matplotlib eps-files and eps-files generated somewhere else. Maybe someone has an idea. Kind regards, Matthias On Thursday 21 January 2010 10:37:32

Re: [Matplotlib-users] vector EPS

2010-01-20 Thread Matthias Michler
Hi Matt, I cannot see any difference between matplotlib generated eps and others. I used the code below to generate the attached eps. Maybe you could be more specific in what is rasterized in the wrong way. By the way what version of matplotlib you are using? Kind regards, Matthias import matp

Re: [Matplotlib-users] mplot3d scatter3d marker sizes?

2010-01-20 Thread Matthias Michler
If not, it's of course > possible to manually apply the mapping - just less convinient) > > On Mon, Jan 18, 2010 at 11:49 PM, Matthias Michler > > wrote: > > Hi Erik, > > > > with current svn I see markers of different size. What version of > > matplotl

Re: [Matplotlib-users] mplot3d scatter3d marker sizes?

2010-01-18 Thread Matthias Michler
Hi Erik, with current svn I see markers of different size. What version of matplotlib you are using? Kind regards, Matthias On Monday 18 January 2010 21:38:25 Erik Tollerud wrote: > Is there a way to change the sizes of scatter plot markers for > mplot3d.Axes3D.scatter3d ? I do > > from mpl_too

Re: [Matplotlib-users] Can't get interative to work

2010-01-14 Thread Matthias Michler
Hi Nico, I'm not sure, but one reason could be different backends. What kind of backend are you using on the 2 machines? import matplotlib.pyplot as plt print plt.get_backend() ( and what version of matplotlib import matplotlib print matplotlib.__version__ ) In case the backends are d

Re: [Matplotlib-users] xlim and xticks

2010-01-14 Thread Matthias Michler
Hi Pierre, I'm not sure I understand correctly - maybe you could provide a small stand-alone example which illustrates your problem. For me the following works fine: ax = axes() ax.bar(arange(10), np.random.uniform(size=10)) xticks(0.5+arange(10), ["$a_%i$" % (i) for i in arange(10)]) xlim(xmax

Re: [Matplotlib-users] Adding points gradually to the plot

2010-01-14 Thread Matthias Michler
Hello, I think you could do the following On Wednesday 13 January 2010 19:14:08 Someday... wrote: > Hello all, > > I am looking for a way to add points gradually to the plot over time. > Currently, in every iteration, I plot the entire array, like: > plt.ion() # turn on interactive mode (otherwi

Re: [Matplotlib-users] newbie question: type check?

2010-01-12 Thread Matthias Michler
otlib. In[11]: matplotlib.axes.Subplot.__name__ Out[11]: 'AxesSubplot' I would expect that the case of the Subplot-objects is somehow singular and all other mpl-objects can be classified using type and isinstance, but I'm not an mpl-expert and maybe there are more special cases. Kin

Re: [Matplotlib-users] newbie question: type check?

2010-01-12 Thread Matthias Michler
Hi Nico, I'm sorry I cannot help you, but at least I'd like to share my findings with you: I find the following statements to be true: isinstance(gca(), matplotlib.axes.SubplotBase) isinstance(gca(), matplotlib.axes.Subplot) isinstance(gca(), matplotlib.axes.Axes) but there is no class 'AxesSubpl

Re: [Matplotlib-users] Setting Relative Heights For Figure Rows

2010-01-11 Thread Matthias Michler
Hi Chris, I think pyplot.axes does what you are after, e.g. ax1 = axes([0.1, 0.3, 0.8, 0.6]) ax2 = axes([0.1, 0.1, 0.8, 0.1]) Kind regards, Matthias from the docs of pyplot.axes: `axes(rect, axisbg='w')`` where *rect* = [left, bottom, width, height] in normalized (0, 1) units. *axisbg* is

Re: [Matplotlib-users] bar/hist plots, bottom on top or right axis

2010-01-08 Thread Matthias Michler
Hi Renato, I think you have to flip the x-axis of the left plot by for instance ax1 = subplot(121, xlim=(1, 0)) and I think than hist(data, orientation='horizontal') or manually using barh-plots works fine. Kind regards, Matthias On Thursday 07 January 2010 22:12:56 Renato Alves wrote: > What I

Re: [Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-29 Thread Matthias Michler
Hi JJ, Bugs item #2922835, was opened at 2009-12-29 15:29 Happy New Year! Kind regards, Matthias On Tuesday 29 December 2009 15:13:39 Matthias Michler wrote: > Hi JJ, > > I'm sorry for the late response - I was on chrismas holidays and in fact > even now I have not much tim

Re: [Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-29 Thread Matthias Michler
anges if necessary. > > Regards, > > -JJ > > > On Tue, Dec 15, 2009 at 10:22 AM, Matthias Michler > > wrote: > > Hello list, > > > > I run into trouble with the formelly working > > example ''ginput_manual_clabel.py'' or the

[Matplotlib-users] clabel( CS, manual=True ) / ginput_manual_clabel.py - broken?

2009-12-15 Thread Matthias Michler
Hello list, I run into trouble with the formelly working example ''ginput_manual_clabel.py'' or the following minimal example (in ipython -pylab) CS = plt.contour(reshape(arange(20)%3, (4, 5)), [0, 1, 2]) CL = plt.clabel( CS, manual=True ) First of all I get a DeprecationWarning during the sta

Re: [Matplotlib-users] [matplotlib] can't get any output

2009-12-11 Thread Matthias Michler
Hi Manuel, adding a "show()" to your script should resolve the problem. You don't need this using ipython in "-pylab" mode, matplotlibs interactive mode or if you save your figure to some file (savefig), but in your case you need to call the main loop. Kind regards Matthias from the docu: Use

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-12-11 Thread Matthias Michler
ached image for an example. > > Cheers, > Reinier > > On Thu, Dec 3, 2009 at 10:01 AM, Matthias Michler > > wrote: > > Thanks a lot! > > > > Regards, > > Matthias > > > > On Wednesday 02 December 2009 17:10:54 Reinier Heeres wrote: > >>

Re: [Matplotlib-users] positions of the ticks and ticklabels

2009-12-08 Thread Matthias Michler
Hi Abhi, I added an example program which illustrates my idea using transformation of axes-coord. to screen-coord. and from screen-coord. to fig-coord. point_screen = ax.transAxes.transform_point(point_ax) point_fig = fig.transFigure.inverted().transform_point(point_screen) I don't know if

Re: [Matplotlib-users] Customize/disable keyboard shortcuts

2009-12-07 Thread Matthias Michler
Hi Jorge, Hello list, unfortunately I cannot help you, but I understand your problem and would like to know about a solution, too. I encountered this problem in April/may 2007 (http://old.nabble.com/skip-mpl-axes-interaction-during-key_press_event's-td10221576.html) because of the 'l'ogarthmic

[Matplotlib-users] textbox / prompt in mpl / inputbutton

2009-12-07 Thread Matthias Michler
Hello list, are there any new developments about a field to input text or numbers, which was discussed in thread "Prompt in MPL - NEVER MIND" in June 2007? Especially I am interested if there exists a version of John Hunters textbox2.py working with current svn, because I am not able to resolve

Re: [Matplotlib-users] How to display axis numbers inside the figure area

2009-12-03 Thread Matthias Michler
Hi Angelica, I have to admit I don't get the point of what you want to do and maybe this is true for others too. I tried something (see attachement), but maybe it is better if you could set up an small example script or draw a picture of what you want to see finally. Kind regards, Matthias On

Re: [Matplotlib-users] usetex=True and savefig(eps-file)

2009-12-03 Thread Matthias Michler
mber 2009 19:04:55 Jouni K. Seppänen wrote: > Matthias Michler writes: > > Do you know why is happens only for ps/eps-files? > > The ps backend uses TeX in a different way than the other backends. It > uses psfrag and dvips to construct the final file. > > >> Have you

  1   2   3   >