SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(16)
2
(31)
3
(17)
4
(18)
5
(7)
6
(5)
7
(16)
8
(9)
9
(19)
10
(18)
11
(17)
12
(7)
13
(6)
14
(15)
15
(16)
16
(15)
17
(19)
18
(27)
19
(10)
20
(5)
21
(5)
22
(19)
23
(7)
24
(11)
25
(19)
26
(1)
27
(36)
28
(37)
29
(28)
30
(36)



Showing 10 results of 10

From: Pierre GM <pgm...@gm...> - 2009年09月19日 16:56:13
All,
I'm trying to use the Cocoa backend on Snow Leopard, using r7791 (GCC 
4.2.1 / Python 2.6.1 from Apple, 64b)
Unfortunately, a simple `plot(range(10),range(10))` gives me an empty 
window and error message as such:
Python[53010:d07] Inconsistent set of values to create NSBitmapImageRep
/Users/pierregm/.local/lib/python2.6/site-packages/matplotlib/backends/ 
backend_cocoaagg.py:140: UninitializedDeallocWarning: leaking an 
uninitialized object of type NSBitmapImageRep
 32) # bits per pixel
Can anybody reproduce it ? Would anybody have some ideas on how to fix 
that ?
Thx a lot in advance.
P.
FYI, the build log can be accessed at: http://pastebin.com/d5b3c1838
From: Thomas H. <th...@gm...> - 2009年09月19日 06:55:51
starting with 
ipython -pylab 
solves it... 
thanks for the help! 
Thomas Hrabe wrote:
> 
> Hi all,
> 
> I am a beginner with matplotlib and doing my first steps with python
> plotting.
> However, I learned that pyplot.show really forces the display of already
> existing plots.
> 
> For instance, when I type 
> In[2]: pyplot.plot([1,2,3])
> Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>] 
> 
> nothing happens until I type
> 
> In[3]: pyplot.show()
> 
> After that, the interpreter halts until I close the new figure window.
> Only closing enables the interpreter to continue with my later input.
> Moreover, typing 
> In[4]: pyplot.plot([1,2,3])
> 
> again would display the figure immediately. Seems the gtk engine or
> something else must be started up by pyplot.show once and, once running,
> it displays everything else after that instantly.
> How can I tweak pyplot in such way that it would display my figures on the
> very first pyplot.plot call without halting the input?
> 
> Thank you in advance for your help,
> Thomas
> 
> 
-- 
View this message in context: http://www.nabble.com/pyplot.show-tp25518658p25519154.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: sunqiang <sun...@gm...> - 2009年09月19日 06:46:03
oops, maybe use pyplot.ion() not pyplot.ioff(). and pyplot.show() is not
needed.
just pyplot.plot(values) is enough to launch a new figure window and you can
continue plot new lines or legend... interactively.
I test it on my pc: Windows XP, Python 2.5.4, Matplotlib 0.99.0.
On Sat, Sep 19, 2009 at 1:37 PM, Thomas Hrabe <th...@go...> wrote:
> Hi,
>
>
> thank you for the quick reply. Unfortunately, none of both works for me.
>
>
> values = [1,2,3];
>
> pyplot.ioff();
>
> #pyplot.ion();
>
> print pyplot.isinteractive();
>
> pyplot.plot(values);
>
> pyplot.show();
>
> The value (True|False) of interactive mode does not make a difference to
> the plotting.
> Other suggestionst?
>
> Thanks so far!
>
> 2009年9月19日 sunqiang <sun...@gm...>
>
> may be you can try pyplot.ion()? it turns interactive mode on.
>> Hope this helps.
>> On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe <th...@gm...> wrote:
>>
>>>
>>> Hi all,
>>>
>>> I am a beginner with matplotlib and doing my first steps with python
>>> plotting.
>>> However, I learned that pyplot.show really forces the display of already
>>> existing plots.
>>>
>>> For instance, when I type
>>> In[2]: pyplot.plot([1,2,3])
>>> Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>]
>>>
>>> nothing happens until I type
>>>
>>> In[3]: pyplot.show()
>>>
>>> After that, the interpreter halts until I close the new figure window.
>>> Only
>>> closing enables the interpreter to continue with my later input.
>>> Moreover,
>>> typing
>>> In[4]: pyplot.plot([1,2,3])
>>>
>>> again would display the figure immediately. Seems the gtk engine or
>>> something else must be started up by pyplot.show once and, once running,
>>> it
>>> displays everything else after that instantly.
>>> How can I tweak pyplot in such way that it would display my figures on
>>> the
>>> very first pyplot.plot call without halting the input?
>>>
>>> Thank you in advance for your help,
>>> Thomas
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/pyplot.show-tp25518658p25518658.html
>>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9&#45;12, 2009. Register
>>> now&#33;
>>> http://p.sf.net/sfu/devconf
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>
>>
>
From: Eric F. <ef...@ha...> - 2009年09月19日 06:30:18
Keith Goodman wrote:
> Robert Kern recently noticed a bug in demean. The bug and the fix is here:
> 
> http://mail.scipy.org/pipermail/numpy-discussion/2009-August/044446.html
> 
Fixed. Thank you for pointing this out.
Eric
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Gökhan S. <gok...@gm...> - 2009年09月19日 05:51:26
Running IPython with -pylab or specifying the threading option?
See more at
http://ipython.scipy.org/doc/stable/html/interactive/reference.html?highlight=pylab
On Sat, Sep 19, 2009 at 12:42 AM, Thomas Hrabe <th...@gm...> wrote:
>
> Hi,
>
> thank you for the quick reply. Unfortunately, none of both works for me.
>
> values = [1,2,3];
> pyplot.ioff();
> #pyplot.ion();
> print pyplot.isinteractive();
> pyplot.plot(values);
> pyplot.show();
>
> The value (True|False) of interactive mode does not make a difference to
> the
> plotting.
> Other suggestionst?
>
> Thanks so far!
>
>
> >may be you can try pyplot.ion()? it turns interactive mode on.
> >Hope this helps.
> >On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe <th...@gm...> wrote:
>
> >
> > Hi all,
> >
> > I am a beginner with matplotlib and doing my first steps with python
> > plotting.
> > However, I learned that pyplot.show really forces the display of already
> > existing plots.
> >
> > For instance, when I type
> > In[2]: pyplot.plot([1,2,3])
> > Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>]
> >
> > nothing happens until I type
> >
> > In[3]: pyplot.show()
> >
> > After that, the interpreter halts until I close the new figure window.
> > Only
> > closing enables the interpreter to continue with my later input.
> Moreover,
> > typing
> > In[4]: pyplot.plot([1,2,3])
> >
> > again would display the figure immediately. Seems the gtk engine or
> > something else must be started up by pyplot.show once and, once running,
> > it
> > displays everything else after that instantly.
> > How can I tweak pyplot in such way that it would display my figures on
> the
> > very first pyplot.plot call without halting the input?
> >
> > Thank you in advance for your help,
> > Thomas
> >
> > --
> > View this message in context:
> > http://www.nabble.com/pyplot.show-tp25518658p25518658.html
> > Sent from the matplotlib - users mailing list archive at Nabble.com.
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9&#45;12, 2009. Register
> > now&#33;
> > http://p.sf.net/sfu/devconf
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> --
> View this message in context:
> http://www.nabble.com/pyplot.show-tp25518658p25518780.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
Gökhan
From: Thomas H. <th...@gm...> - 2009年09月19日 05:43:08
Hi,
thank you for the quick reply. Unfortunately, none of both works for me. 
values = [1,2,3];
pyplot.ioff(); 
#pyplot.ion();
print pyplot.isinteractive();
pyplot.plot(values);
pyplot.show();
The value (True|False) of interactive mode does not make a difference to the
plotting.
Other suggestionst?
Thanks so far!
>may be you can try pyplot.ion()? it turns interactive mode on.
>Hope this helps.
>On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe <th...@gm...> wrote:
>
> Hi all,
>
> I am a beginner with matplotlib and doing my first steps with python
> plotting.
> However, I learned that pyplot.show really forces the display of already
> existing plots.
>
> For instance, when I type
> In[2]: pyplot.plot([1,2,3])
> Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>]
>
> nothing happens until I type
>
> In[3]: pyplot.show()
>
> After that, the interpreter halts until I close the new figure window.
> Only
> closing enables the interpreter to continue with my later input. Moreover,
> typing
> In[4]: pyplot.plot([1,2,3])
>
> again would display the figure immediately. Seems the gtk engine or
> something else must be started up by pyplot.show once and, once running,
> it
> displays everything else after that instantly.
> How can I tweak pyplot in such way that it would display my figures on the
> very first pyplot.plot call without halting the input?
>
> Thank you in advance for your help,
> Thomas
>
> --
> View this message in context:
> http://www.nabble.com/pyplot.show-tp25518658p25518658.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
View this message in context: http://www.nabble.com/pyplot.show-tp25518658p25518780.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Thomas H. <th...@go...> - 2009年09月19日 05:38:06
Hi,
thank you for the quick reply. Unfortunately, none of both works for me.
values = [1,2,3];
pyplot.ioff();
#pyplot.ion();
print pyplot.isinteractive();
pyplot.plot(values);
pyplot.show();
The value (True|False) of interactive mode does not make a difference to the
plotting.
Other suggestionst?
Thanks so far!
2009年9月19日 sunqiang <sun...@gm...>
> may be you can try pyplot.ion()? it turns interactive mode on.
> Hope this helps.
> On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe <th...@gm...> wrote:
>
>>
>> Hi all,
>>
>> I am a beginner with matplotlib and doing my first steps with python
>> plotting.
>> However, I learned that pyplot.show really forces the display of already
>> existing plots.
>>
>> For instance, when I type
>> In[2]: pyplot.plot([1,2,3])
>> Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>]
>>
>> nothing happens until I type
>>
>> In[3]: pyplot.show()
>>
>> After that, the interpreter halts until I close the new figure window.
>> Only
>> closing enables the interpreter to continue with my later input. Moreover,
>> typing
>> In[4]: pyplot.plot([1,2,3])
>>
>> again would display the figure immediately. Seems the gtk engine or
>> something else must be started up by pyplot.show once and, once running,
>> it
>> displays everything else after that instantly.
>> How can I tweak pyplot in such way that it would display my figures on the
>> very first pyplot.plot call without halting the input?
>>
>> Thank you in advance for your help,
>> Thomas
>>
>> --
>> View this message in context:
>> http://www.nabble.com/pyplot.show-tp25518658p25518658.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9&#45;12, 2009. Register
>> now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
From: sunqiang <sun...@gm...> - 2009年09月19日 05:30:11
may be you can try pyplot.ion()? it turns interactive mode on.
Hope this helps.
On Sat, Sep 19, 2009 at 1:11 PM, Thomas Hrabe <th...@gm...> wrote:
>
> Hi all,
>
> I am a beginner with matplotlib and doing my first steps with python
> plotting.
> However, I learned that pyplot.show really forces the display of already
> existing plots.
>
> For instance, when I type
> In[2]: pyplot.plot([1,2,3])
> Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>]
>
> nothing happens until I type
>
> In[3]: pyplot.show()
>
> After that, the interpreter halts until I close the new figure window. Only
> closing enables the interpreter to continue with my later input. Moreover,
> typing
> In[4]: pyplot.plot([1,2,3])
>
> again would display the figure immediately. Seems the gtk engine or
> something else must be started up by pyplot.show once and, once running, it
> displays everything else after that instantly.
> How can I tweak pyplot in such way that it would display my figures on the
> very first pyplot.plot call without halting the input?
>
> Thank you in advance for your help,
> Thomas
>
> --
> View this message in context:
> http://www.nabble.com/pyplot.show-tp25518658p25518658.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Thomas H. <th...@gm...> - 2009年09月19日 05:12:02
Hi all,
I am a beginner with matplotlib and doing my first steps with python
plotting.
However, I learned that pyplot.show really forces the display of already
existing plots.
For instance, when I type 
In[2]: pyplot.plot([1,2,3])
Out[2]: [<matplotlib.lines.Line2D object at 0x2e33850>] 
nothing happens until I type
In[3]: pyplot.show()
After that, the interpreter halts until I close the new figure window. Only
closing enables the interpreter to continue with my later input. Moreover,
typing 
In[4]: pyplot.plot([1,2,3])
again would display the figure immediately. Seems the gtk engine or
something else must be started up by pyplot.show once and, once running, it
displays everything else after that instantly.
How can I tweak pyplot in such way that it would display my figures on the
very first pyplot.plot call without halting the input?
Thank you in advance for your help,
Thomas
-- 
View this message in context: http://www.nabble.com/pyplot.show-tp25518658p25518658.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Michael M. F. <mf...@ph...> - 2009年09月19日 02:34:23
Hi,
Is there a standard way to compute first and then plot something 
later? For example, I would like to generate a fine contour plot, 
then use it as a background later.
x = np.linspace(-1,1,1000)
X,Y = np.meshgrid(x,x)
Z = ((X*X + Y*Y) - 0.5)**2 + Y**2
contours = plt.contour(X,Y,Z,100) # Takes a while...
del x, X, Y, Z
I would like to the later plot the contours quickly. What is the 
"proper" way to do this in general? I can do something like the 
following, but it seems like a hack (and may be missing important 
connections: for example, I initially forgot to set the transform 
which meant that the data was disconnected from the axis scale...)
f = plt.figure()
ax = plt.gca()
for collection in contours.collections:
 collection.set_transform(ax.transData)
 ax.add_collection(collection)
ax.autoscale_view()
plt.draw()
Have I forgotten anything here? I would have expected that, for any 
plotting command, the return value could be passed to an axis command, 
something like
f = plt.figure()
ax = plt.gca()
ax.add(contours)
or maybe even
ax.contour(contours)
though a general function to take the object returned by a plot 
command and plot it on the current axis efficiently would be best.
I can't find this functionality or a description about how to do 
this. Any suggestions?
Likewise, is there an easy way to "duplicate" a figure (including the 
axes properties etc.) so one can produce two similar figures with 
slightly modified parameters?
Thanks,
Michael.

Showing 10 results of 10

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /