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
(14)
2
(11)
3
(5)
4
(17)
5
(11)
6
(37)
7
(35)
8
(9)
9
(1)
10
(9)
11
(7)
12
(22)
13
(34)
14
(24)
15
(27)
16
(13)
17
(19)
18
(43)
19
(36)
20
(12)
21
(9)
22
(21)
23
(3)
24
(5)
25
(30)
26
(14)
27
(23)
28
(19)
29
(19)
30
(10)
31
(6)






Showing 5 results of 5

From: projetmbc <pro...@cl...> - 2009年05月03日 23:55:01
Freddie Witherden a écrit :
> Hi all,
>
> For those that are interested I have finally (now that my first batch 
> of exams are finished) set-up a blog so that you can track the 
> progress of the project.
>
> My blog can be found here: http://gsoc-mathtex.blogspot.com/ (no marks 
> for originality ;). I intend to update it on a semi-regular basis, 
> time permitting.
>
> Regards, Freddie.
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
That's very cool. I'm very impatient to test it...
Christophe.
From: per f. <per...@gm...> - 2009年05月03日 01:56:21
hi all,
is there a way to plot the results of hierarchical clustering as a
dendrogram on top and to the sides of a heatmap matrix? for example, like
this figure:
http://www.egms.de/figures/meetings/gmds2006/06gmds075.f1.png
any examples of how to do this in matplotlib would be greatly appreciated.
thank you.
From: Jae-Joon L. <lee...@gm...> - 2009年05月03日 00:59:25
ax.twin returns a ParasiteAxesAuxTrans instance which is derived from
the mpl's original Axes, but only drawing-related methods are meant to
be meaningful. For example, this axes is never meant to be added to
the figure and the draw method of this axes is never meant to be
called. I haven't looked at it thoroughly but I guess the reason the
callbacks are not processed is because this axes is not added to the
figure and no set_xlim (or set_ylim) is explicitly called.
However, consider it as a feature not a bug.
The xlim of the parasite axes is mean to be "only" changed when the
xlim of the host axes changes. And the set_xlim (and set_ylim) method
should not be called directly on the parasite axes. Furthermore, I
don't see any reason to connect xlim_change event to the parasite
axes. If there is anything you want to do when the xlim of the
parasite axes change, just connect it to the host axes.
If there is a case that xlim_change event should be directly connected
to the parasite axes (instead of the host axes), I'll consider it as a
bug and try to fix it.
Regards,
-JJ
On Sat, May 2, 2009 at 2:03 PM, Thomas Robitaille
<tho...@gm...> wrote:
>
> There was a typo in the script, the callbacks should be
>
> ax.name = "first axis"
> ax.callbacks.connect('xlim_changed',check_callback)
> ax.callbacks.connect('ylim_changed',check_callback)
>
> ax2 = ax.twin()
> ax2.name = "second axis"
> ax2.callbacks.connect('xlim_changed',check_callback)
> ax2.callbacks.connect('ylim_changed',check_callback)
>
> but the problem remains: check_callback is never called for ax2.
>
> Tom
>
> --
> View this message in context: http://www.nabble.com/Enforcing-common-view-limits-tp23334325p23348806.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Michiel de H. <mjl...@ya...> - 2009年05月03日 00:22:19
Hi everybody,
For those of you that are using the gtk, gtkcairo, or gtkagg backends:
Today pygtk version 2.15.0 became available, which is the first pygtk that can be used interactively from both python and ipython. If you're using ipython, be sure to wait for release 0.10.0 of ipython before upgrading to pygtk 2.15.0; older versions of ipython may not work correctly. If you're using regular python, you can install pygtk 2.15.0, set interactive to True in matplotlibrc, and you should be all set. Unfortunately, this won't work with IDLE; this is because of the lack of event loop support in Python itself.
Enjoy!
--Michiel.
 
From: Eric F. <ef...@ha...> - 2009年05月03日 00:17:16
Matthias Michler wrote:
> Hello Eric, Hello list,
> 
> a year ago I also encountered the problem of "one file - one figure" of the 
> plotfile function. I would like to propose an addional functionality of using 
> one figure and several files in plotfile, because sometimes I don't want to 
> read data myself. I added a patch including the following changes:
> - added a new keywordargument to plotfile 'use_cf': If use_cf isTrue plotfile 
> uses fig = gcf() instead of fig = figure() to suppress opening of a new 
> figure and therewith allowing to use the user preferred figure
> - added a further new keyword argument 'names' to set x/ylabels in the case 
> there are no names in the csv-file
> 
> Furthermore I attached the modified plotfile_demo.py 
> (examples/pylab_examples/plotfile_demo.py) and some new data 
> (examples/data/data_x_x2_x3.csv).
> 
> Could this be useful?
> 
> Thanks in advance for any comments.
Matthias,
I incorporated a slight modification of your changes (newfig=False 
instead of use_cf=True) together with changes I made to directly support 
what Joseph asked about. The result is in r7078.
I hesitated to make even these changes, though, because I think we 
should avoid trying to make plotfile into a do-all tool. It should be 
kept as something that may be handy for quick and dirty plotting in some 
situations; but when a user needs something beyond that, the better 
approach is for the user to simply use the pyplot or matplotlib API to 
achieve the desired result directly.
Eric
> 
> best regards
> Matthias
> 
> On Wednesday 29 April 2009 09:20:17 Eric Firing wrote:
>> Joseph Smidt wrote:
>>> Okay, I am another gnuplot user trying to migrate over to matplotlib.
>>> I like what I see, but there are a couple things that are very easy to
>>> do in Gnuplot that I can't figure out how to do with matplotlib.
>>>
>>> I have a file with 3 columns of data called data.txt that looks like:
>>>
>>> 0.0000 1.0000 1.0
>>> 0.0634 1.0655 1.1353
>>> 0.1269 1.1353 1.28899916094
>>> 0.1903 1.2097 1.46345358199
>>> 0.2538 1.2889 1.6615188369
>>> 0.3173 1.3734 1.88639043926
>>> ...
>>>
>>> I can plot this data, 2 versus 1 and 3 versus 1, very easily on the
>>> same plot, with a legend, with log y values, and only for the xrange
>>> between 2 and 3 with gnuplot:
>>>
>>> set log y
>>> set xrange[2:3]
>>> plot 'data.txt' u 1:2 w l t 'apples', 'data.txt' u 1:3 w l t 'oranges'
>>>
>>> Now, how do I do that same thing with matplotlob? Ie:
>>>
>>> 1. Both graphs overlayed on the same plot.
>>> 2. Semilogy. (log y values),
>>> 3. Only ploy for x in the range 2-3.
>>> 4. Legend for the two graphs on same plot.
>> Something like this:
>>
>> import numpy as np
>> import matplotlib.pyplot as plt
>>
>> x, apples, oranges = np.loadtxt('data.txt', unpack=True)
>> plt.semilogy(x, apples, label='apples')
>> plt.semilogy(x, oranges, label='oranges')
>> plt.legend()
>> plt.gca().set_xlim(2, 3)
>> plt.show()
>>
>> There are many possible variations and styles. The basic point is to
>> separate reading in the data from plotting it. Plotfile won't do what
>> you want because it is designed to make separate subplots instead of
>> plotting multiple lines on a single axes. Maybe doing the latter would
>> be at least as useful, if not more, and could be enabled as an option
>> with one more kwarg.
>>
>> Eric
>>
>>> I have spent time looking through the documentation but I can't find
>>> anyway to do this is any straightforward way. plotfile() looks
>>> promising, but I can't seem to make it do the above. Thanks in
>>> advance.
>>>
>>> Joseph Smidt
>> ---------------------------------------------------------------------------
>> --- Register Now & Save for Velocity, the Web Performance & Operations
>> Conference from O'Reilly Media. Velocity features a full day of
>> expert-led, hands-on workshops and two days of sessions from industry
>> leaders in dedicated Performance & Operations tracks. Use code vel09scf
>> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

Showing 5 results of 5

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 によって変換されたページ (->オリジナル) /