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






Showing 2 results of 2

From: John H. <jdh...@ac...> - 2003年11月17日 15:50:14
>>>>> "Nelson" == Nelson Minar <ne...@mo...> writes:
 Nelson> John Hunter <jdh...@ac...> writes:
 >> There are a lot of good plotting libraries out there. I'll
 >> pitch mine. http://matplotlib.sourceforge.net
 Nelson> Thanks for posting this! I've been using gdchart for a
 Nelson> long time because it's simple and the graphs aren't too
 Nelson> bad. But it's very limited, in particular your X axis has
 Nelson> to be equally spaced.
Hi Nelson, thanks for the email and the detailed comments. It would
be great to have you join the mailing list - other users would benefit
from your comments -
http://lists.sourceforge.net/mailman/listinfo/matplotlib-users
 Nelson> I spent about an hour with matplotlib. It's clear you put
 Nelson> a lot of work into this, and I think this could be a
 Nelson> really great library. Some thoughts for you from a casual
 Nelson> user:
 Nelson> The installation prerequisites are a bit daunting but on a
 Nelson> Debian system it's not too bad. Debian has many of the
 Nelson> packages you need: apt-get install python2.3-numeric
 Nelson> python2.3-numarray python2.3-numeric-ext apt-get install
 Nelson> fonttools libgd2-dev python2.3-gtk2 python2.3-numeric-ext
 Nelson> is easy to forget: you need that for FFT and MLab.
I'll update the web page with this information for debian users.
Debian is great; unfortunately, I don't get much opportunity to use it
so I haven't gone through the process of installing matplotlib on
debian. There was some interest on the mailing list earlier about
getting matplotlib packaged for debian, and an RFP was made, but I
don't there has been any any progress on this front. Charles, Nathan,
any comments here?
 Nelson> The only things I had to install from sources were
 Nelson> TTFQuery and gdmodule, and both of those were easy.
 Nelson> I'd like to use this module as a simple thing to create
 Nelson> PNGs of graphs from data to put on web pages. The GD
 Nelson> driver is most of what I need, and the idea that I could
 Nelson> also do postscript output is great. But the packaging of
 Nelson> matplotlib is a bit funky. The most confusing thing was
 Nelson> the way you read sys.argv - that's probably not good for a
 Nelson> resuable library.
I agree to a certain extent. But I don't modify the args and they
will be without effect if you use the incantation, as you did
 import matplotlib 
 matplotlib.use('GD')
Mainly, I did it because I wanted an easy way to switch between
backends without switching scripts. There are other ways to do this
however. Unless the presence of the sys.argv is causing a problem, I
am hesitant to remove it to maintain backwards compatibility. If you
can think of a problem, please let me know.
 Nelson> I was also mystified as to how to set the plotsize using
 Nelson> the matlab module. I gave up and ended up doing something
 Nelson> else, but it was so much work I felt like I probably did
 Nelson> something wrong:
 Nelson> import matplotlib
 Nelson> matplotlib.use('GD')
 Nelson> from matplotlib.backends import Figure
 Nelson> from matplotlib.axes import Subplot
 Nelson> f = Figure(figsize=(3, 2), dpi=100)
 Nelson> a = Subplot(111)
 Nelson> a.plot([1,2,3,4], [1,4,9,16])
 Nelson> f.add_axis(a)
 Nelson> f.print_figure("nelson2.png", 100)
You're right on the money here. The ability to control the dpi,
figsize and other attributes from the matlab interface is limited. I
think I'll add kwargs to the fig command to enable this, and plan to
go to a backend specific config file for the next release -- a
.matplotlibrc file containing a dictionary that provided default font,
figsize, dpi, etc, for each backend. But beyond this, it is important
to be able to control these attributes at the script level using the
matlab interface.
I'm glad you figured out the workaround by using the API.
JDH
From: Gary R. <ga...@em...> - 2003年11月17日 14:28:35
Sounds awesomely powerful - not since the development of John Harrison's clocks will navigation have taken such a great step forward :-)
----- Original Message -----
From: John Hunter <jdh...@ac...>
Date: 2003年11月16日 07:50:53 -0600
To: "Gary Ruben" <ga...@em...>
Subject: Re: [Matplotlib-users] Navigation toolbar redraw button
> >>>>> "Gary" == Gary Ruben <ga...@em...> writes:
> 
> Gary> I think it's important to always have an easy way of zooming
> Gary> out to show the full plot, so if you implement your saved
> Gary> view idea and don't want to add a 'fit to full data' button,
> Gary> I think having a 'fit to full data' checkpoint automatically
> Gary> added is important. It might be even be worth looking into
> Gary> cacheing the full view to speed its rendering. That way, you
> Gary> could quickly navigate by zooming to full and then using a
> Gary> rectangle zoom to your area of interest.
> 
> Combining my original thoughts with yours and Charles, then. How
> about the following? Allow the user to select the old style toolbar
> from a config file, but the new toolbar would
> 
> 1) lose all the left, right, up down buttons, in favor of a single
> 'hand' icon that allows you to move the view limits by 'grabbing
> them in the axes and moving them around. With x or y key pressed
> the pan motion will be contained to the respective axis. The
> mouse button which activates this in the axes should be easily
> configurable so as to not class with application developers.
> 
> 2) have a zoom in and zoom out button that work on both axis
> symmetrically unless the 'x' or 'y' modifier keys are pressed in
> which case work only on that axis. Allow similar functionality
> with the mouse in the axes, eg wheel mouse, as Charles suggested
> or mouse-3 as vtk interactor windows use. Then you could pan and
> zoom in an axes without ever removing your mouse from the axes
> lim. 
> 
> 3) have a zoom rectangle tool that allows you to zoom to a selected
> rectangle, constrained to maintain axis ratio if CTRL is pressed
> 
> 4) have a zoom to data button that changes viewlim to incorporate
> entire dataset
> 
> 5) use the 'views' navigation with forward / mark / and back buttons
> that allows you to navigate between views
> 
> 6) lose the redraw button, obsolete
> 
> 7) have a savefig button which allows you to set the dpi, filename
> and backend, so you can output with ps, gd, or gtk backend
> 
> 8) close window unchanged.
> 
> Further comments?
> 
> JDH
-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Search Smarter - get the new eXact Search Bar for free!
http://www.exactsearchbar.com/

Showing 2 results of 2

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