Re: What data types does matplotlib pyplot take?

2018-06-15 Thread Peter Pearson
On Wed, 13 Jun 2018 12:53:57 -0400, C W wrote: > Hi everyone, > > I'm curious what data types pyplot takes. It seems that it can take numpy > series, pandas series, and possibly pandas dataframe? How many people data > types are out there? Is that true for all functions

What data types does matplotlib pyplot take?

2018-06-13 Thread C W
Hi everyone, I'm curious what data types pyplot takes. It seems that it can take numpy series, pandas series, and possibly pandas dataframe? How many people data types are out there? Is that true for all functions in like hist(), bar(), line(), etc? Is there an official documentation that

Re: pyplot: change the number of x labels (from 6)

2018-01-10 Thread Paulo da Silva
Às 09:17 de 10-01-2018, Thomas Jollans escreveu: On 2018-01-10 05:22, Paulo da Silva wrote: Hi all. ... It's a bit hard to tell without a working example, but I think you'll want to set a tick locator, e.g. something like ax0.xaxis.set_major_locator(matplotlib.ticker.MultipleLocator(1)) B

Re: pyplot: change the number of x labels (from 6)

2018-01-10 Thread Thomas Jollans
On 2018-01-10 05:22, Paulo da Silva wrote: > Hi all. > > I want to have dates as major ticks labels of X axis. > This fragment of code works fine except that I need more dates to appear > instead the 6 I am getting. The number of dates in dtsd is for ex. 262. > > Thanks for any help. > > BTW, I

pyplot: change the number of x labels (from 6)

2018-01-09 Thread Paulo da Silva
Hi all. I want to have dates as major ticks labels of X axis. This fragment of code works fine except that I need more dates to appear instead the 6 I am getting. The number of dates in dtsd is for ex. 262. Thanks for any help. BTW, I got most of this code from some site on the internet. ...

Creating an oval inside a pyplot in Tkinter window

2017-07-21 Thread Tafla Magnaw
t; drop-down menu. when I click the "Add oval" drop-down menu, a pop up window with entry boxes will display.Enter the x & y location (for example 50 &150 and click the send button, the oval should display inside of the left side pyplot. The code below works fine with tkinter wind

Re: trouble with pyplot in os x

2012-08-04 Thread Eric
On Saturday, August 4, 2012 8:11:44 AM UTC-5, William R. Wing (Bill Wing) wrote: > On Aug 3, 2012, at 11:12 PM, Eric wrote: > > > > > I'm just starting to futz around with matplotlib and I tried to run this > > > example from the matplotlib doc page (it's the imshow() example): > > > > > >

Re: trouble with pyplot in os x

2012-08-04 Thread William R. Wing (Bill Wing)
On Aug 3, 2012, at 11:12 PM, Eric wrote: > I'm just starting to futz around with matplotlib and I tried to run this > example from the matplotlib doc page (it's the imshow() example): > > import numpy as np > import matplotlib.cm as cm > import matplotlib.mlab as mlab > import matplotlib.pyplot

trouble with pyplot in os x

2012-08-03 Thread Eric
I'm just starting to futz around with matplotlib and I tried to run this example from the matplotlib doc page (it's the imshow() example): import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = y = np.arange(-3.0, 3.0, delta)

tiff/pbm in pyplot (ubuntu)

2011-10-19 Thread Hans Georg Schaathun
Does anyone know how to get support for tiff/pbm in pyplot on Ubuntu (11.04)? This used to work for me, on some system, but when I attempt to regenerate my TIFF files on a new system, it all crashes. The error message is clear; TIFF and PBM are not supported, and the exception occurs in a call

Re: [pyplot] using f1=figure(1)

2011-04-04 Thread Giacomo Boffi
"eryksun ()" writes: > figure(fig1.number) > plot(...) that's already much better than figure(1);...;figure(2);... > Alternatively, you can use the plot methods of a particular axes: > > fig1 = figure() > ax1 = axes() > fig2 = figure() > ax2 = axes() > > ax1.plot(...

Re: [pyplot] using f1=figure(1)

2011-03-30 Thread eryksun ()
On Monday, March 28, 2011 12:04:02 PM UTC-4, Giacomo Boffi wrote: > > >>> f1=figure(1) > >>> f2=figure(2) > >>> f1 > > >>> f2 > > >>> plot(sin(linspace(0,10)),figure=f1) > [] > >>> plot(cos(linspace(0,10)),figure=f2) > [] > >>> show() You can set the current figure to fig1 with the following:

Re: [pyplot] using f1=figure(1)

2011-03-28 Thread Giacomo Boffi
Blockheads Oi Oi writes: > I don't know why but this works fine. > f1=figure(1) > plot(sin(linspace(0,10)),figure=f1) > f2=figure(2) > plot(cos(linspace(0,10)),figure=f2) > show() it works as well (with a proper t...) plot(sin(t);figure(2);plot(cos(t));show() because that's the way it is advis

Re: [pyplot] using f1=figure(1)

2011-03-28 Thread Blockheads Oi Oi
On 28/03/2011 17:04, Giacomo Boffi wrote: i executed the following interactions and i remained disappointed $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. from pylab import * f1=figure(1) f2=

[pyplot] using f1=figure(1)

2011-03-28 Thread Giacomo Boffi
i executed the following interactions and i remained disappointed $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> f1=figure(1) >>> f2=figure(2) >>> f1 >>> f2 >>> pl

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
I was able to figure this out on my own. First, to eliminate the masked arrays, I used a combination of the where and compress functions to remove any missing data from my 1-D arrays. Then, I used the griddata function as described above. This did the trick. -- http://mail.python.org/mailman/li

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
On Aug 26, 1:52 am, Dennis Lee Bieber wrote: > On Wed, 25 Aug 2010 14:57:33 -0700 (PDT), becky_s > declaimed the following in gmane.comp.python.general: > > > > > px,py = p(mesolon, mesolat) > >         For my elucidation, what does that      p(x,y)  actually do? > Especially > as you appear to

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
On Aug 25, 4:57 pm, becky_s wrote: > All, > > I’m having a problem with the matplotlib.pyplot.contourf function.  I > have a 1-D array of latitudes (mesolat), a 1-D array of longitudes > (mesolon), and a 1-D array of rainfall values (rain) at those > corresponding lat, lon points.  After importing

matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
All, I’m having a problem with the matplotlib.pyplot.contourf function. I have a 1-D array of latitudes (mesolat), a 1-D array of longitudes (mesolon), and a 1-D array of rainfall values (rain) at those corresponding lat, lon points. After importing the necessary libraries, and reading in these

Re: Pyplot

2009-07-30 Thread Robert Kern
On 2009-07-30 04:02, Kaan AKŞİT wrote: I am a newbee in Python. I have some problem with usage of Pyplot. I have a loop that creates plot in every end of it. Problem starts here: The first plot is fine but the second one is plotted onto the first plot. I use: plt.cla() plt.draw() plt.hold(False

Re: Pyplot

2009-07-30 Thread Kaan AKŞİT
ing,adc0) plt.plot(timing,adc1) plt.plot(timing,adc3) plt.show() plt.clf() plt.cla() plt.close() 30 Temmuz 2009 11:02 tarihinde Kaan AKŞİT yazdı: > I am a newbee in Python. I have some problem with usage of Pyplot. I h

Pyplot

2009-07-30 Thread Kaan AKŞİT
I am a newbee in Python. I have some problem with usage of Pyplot. I have a loop that creates plot in every end of it. Problem starts here: The first plot is fine but the second one is plotted onto the first plot. I use: plt.cla() plt.draw() plt.hold(False) plt.close() plt.clf() but nothing

PyPlot

2009-01-16 Thread Shah Sultan Alam
Hi , I need Pyplot module , How to get and install ( plug in with my python 2.4 distribution ) !!! TIA. Shah. -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
My mistake, I understood plot (as in "from wx.lib.plot import *" that comes with wxwidgets and which does have a demo) Sorry, Philippe Robert wrote: > Philippe C. Martin wrote: > >> I think wxWidget comes with a sample >> >> Philippe > Yes I use it,

Re: wxPython + pyPlot

2005-10-18 Thread Robert
Philippe C. Martin wrote: > I think wxWidget comes with a sample > > Philippe Yes I use it, but there is not a sample with pyplot. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
I think wxWidget comes with a sample Philippe Robert wrote: > Maebe, does anyone have some examples with wxPython and pyplot? > > Thanks again, > Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython + pyPlot

2005-10-18 Thread Robert
Maebe, does anyone have some examples with wxPython and pyplot? Thanks again, Robert -- http://mail.python.org/mailman/listinfo/python-list

wxPython + pyPlot

2005-10-18 Thread Robert
Hellow! I'm writing program with wxpython and pyplot. I need to put a graph (example): def _draw1Objects(): # 100 points sin function, plotted as green circles data1 = 2.*Numeric.pi*Numeric.arange(200)/200. data1.shape = (100, 2) data1[:,1] = Numeric.sin(