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

Showing 3 results of 3

From: Charlie M. <cw...@gm...> - 2007年06月02日 21:08:36
http://cheeseshop.python.org/pypi/matplotlib/
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
===============================================================
2007年06月02日 Released 0.90.1 at revision 3352
2007年06月02日 Display only meaningful labels when calling legend()
 without args. - NN
2007年06月02日 Have errorbar follow the color cycle even if line is not plotted.
 Suppress plotting of errorbar caps for capsize=0. - NN
2007年06月02日 Set markers to same alpha value as line. - NN
2007年06月02日 Fix mathtext position in svg backend. - NN
2007年06月01日 Deprecate Numeric and numarray for use as numerix. Props to
 Travis -- job well done. - ADS
2007年05月18日 Added LaTeX unicode support. Enable with the
 'text.latex.unicode' rcParam. This requires the ucs and
 inputenc LaTeX packages. - ADS
2007年04月23日 Fixed some problems with polar -- added general polygon
 clipping to clip the lines a nd grids to the polar axes.
 Added support for set_rmax to easily change the maximum
 radial grid. Added support for polar legend - JDH
2007年04月16日 Added Figure.autofmt_xdate to handle adjusting the bottom
 and rotating the tick labels for date plots when the ticks
 often overlap - JDH
2007年04月09日 Beginnings of usetex support for pdf backend. -JKS
2007年04月07日 Fixed legend/LineCollection bug. Added label support
 to collections. - EF
2007年04月06日 Removed deprecated support for a float value as a gray-scale;
 now it must be a string, like '0.5'. Added alpha kwarg to
 ColorConverter.to_rgba_list. - EF
2007年04月06日 Fixed rotation of ellipses in pdf backend
 (sf bug #1690559) -JKS
2007年04月04日 More matshow tweaks; documentation updates; new method
 set_bounds() for formatters and locators. - EF
2007年04月02日 Fixed problem with imshow and matshow of integer arrays;
 fixed problems with changes to color autoscaling. - EF
2007年04月01日 Made image color autoscaling work correctly with
 a tracking colorbar; norm.autoscale now scales
 unconditionally, while norm.autoscale_None changes
 only None-valued vmin, vmax. - EF
2007年03月31日 Added a qt-based subplot-adjustment dialog - DSD
2007年03月30日 Fixed a bug in backend_qt4, reported on mpl-dev - DSD
2007年03月26日 Removed colorbar_classic from figure.py; fixed bug in
 Figure.clf() in which _axobservers was not getting
 cleared. Modernization and cleanups. - EF
2007年03月26日 Refactored some of the units support -- units now live in
 the respective x and y Axis instances. See also
 API_CHANGES for some alterations to the conversion
 interface. JDH
2007年03月25日 Fix masked array handling in quiver.py for numpy. (Numeric
 and numarray support for masked arrays is broken in other
 ways when using quiver. I didn't pursue that.) - ADS
2007年03月23日 Made font_manager.py close opened files. - JKS
2007年03月22日 Made imshow default extent match matshow - EF
2007年03月22日 Some more niceties for xcorr -- a maxlags option, normed
 now works for xcorr as well as axorr, usevlines is
 supported, and a zero correlation hline is added. See
 examples/xcorr_demo.py. Thanks Sameer for the patch. -
 JDH
2007年03月21日 Axes.vlines and Axes.hlines now create and returns a
 LineCollection, not a list of lines. This is much faster.
 The kwarg signature has changed, so consult the docs.
 Modified Axes.errorbar which uses vlines and hlines. See
 API_CHANGES; the return signature for these three functions
 is now different
2007年03月20日 Refactored units support and added new examples - JDH
2007年03月19日 Added Mike's units patch - JDH
2007年03月18日 Matshow as an Axes method; test version matshow1() in
 pylab; added 'integer' Boolean kwarg to MaxNLocator
 initializer to force ticks at integer locations. - EF
2007年03月17日 Preliminary support for clipping to paths agg - JDH
2007年03月17日 Text.set_text() accepts anything convertible with '%s' - EF
2007年03月14日 Add masked-array support to hist. - EF
2007年03月03日 Change barh to take a kwargs dict and pass it to bar.
 Fixes sf bug #1669506.
2007年03月02日 Add rc parameter pdf.inheritcolor, which disables all
 color-setting operations in the pdf backend. The idea is
 that you include the resulting file in another program and
 set the colors (both stroke and fill color) there, so you
 can use the same pdf file for e.g. a paper and a
 presentation and have them in the surrounding color. You
 will probably not want to draw figure and axis frames in
 that case, since they would be filled in the same color. - JKS
2007年02月26日 Prevent building _wxagg.so with broken Mac OS X wxPython. - ADS
2007年02月23日 Require setuptools for Python 2.3 - ADS
2007年02月22日 WXAgg accelerator updates - KM
 WXAgg's C++ accelerator has been fixed to use the correct wxBitmap
 constructor.
 The backend has been updated to use new wxPython functionality to
 provide fast blit() animation without the C++ accelerator. This
 requires wxPython 2.8 or later. Previous versions of wxPython can
 use the C++ acclerator or the old pure Python routines.
 setup.py no longer builds the C++ accelerator when wxPython >= 2.8
 is present.
 The blit() method is now faster regardless of which agg/wxPython
 conversion routines are used.
2007年02月21日 Applied the PDF backend patch by Nicolas Grilly.
 This impacts several files and directories in matplotlib:
 - Created the directory lib/matplotlib/mpl-data/fonts/pdfcorefonts,
 holding AFM files for the 14 PDF core fonts. These fonts are
 embedded in every PDF viewing application.
 - setup.py: Added the directory pdfcorefonts to package_data.
 - lib/matplotlib/__init__.py: Added the default parameter
 'pdf.use14corefonts'. When True, the PDF backend uses
 only the 14 PDF core fonts.
 - lib/matplotlib/afm.py: Added some keywords found in
 recent AFM files. Added a little workaround to handle
 Euro symbol.
 - lib/matplotlib/fontmanager.py: Added support for the 14
 PDF core fonts. These fonts have a dedicated cache (file
 pdfcorefont.cache), not the same as for other AFM files
 (file .afmfont.cache). Also cleaned comments to conform
 to CODING_GUIDE.
 - lib/matplotlib/backends/backend_pdf.py:
 Added support for 14 PDF core fonts.
 Fixed some issues with incorrect character widths and
 encodings (works only for the most common encoding,
 WinAnsiEncoding, defined by the official PDF Reference).
 Removed parameter 'dpi' because it causes alignment issues.
 -JKS (patch by Nicolas Grilly)
2007年02月17日 Changed ft2font.get_charmap, and updated all the files where
 get_charmap is mentioned - ES
2007年02月13日 Added barcode demo- JDH
2007年02月13日 Added binary colormap to cm - JDH
2007年02月13日 Added twiny to pylab - JDH
2007年02月12日 Moved data files into lib/matplotlib so that setuptools'
 develop mode works. Re-organized the mpl-data layout so
 that this source structure is maintained in the
 installation. (I.e. the 'fonts' and 'images'
 sub-directories are maintained in site-packages.) Suggest
 removing site-packages/matplotlib/mpl-data and
 ~/.matplotlib/ttffont.cache before installing - ADS
2007年02月07日 Committed Rob Hetland's patch for qt4: remove
 references to text()/latin1(), plus some improvements
 to the toolbar layout - DSD
From: Ken M. <mc...@ii...> - 2007年06月02日 14:51:31
On Jun 2, 2007, at 5:51 AM, Andrea Gavana wrote:
>
> Is there any plan to adapt matplotlib to use the available
> wxPython installation instead of a predefined one?
Yes. The next release of matplotlib will do a better job of 
selecting the approriate drawing implementation. It will also 
include support for wxPython 2.8's more efficient drawing methods.
> And, in this respect, will I get any performance improvement for 
> the kind of plots
> I am doing right now?
Probably not. The focus of optimization has been improving the rate 
at which Agg images can be drawn by wxPython, rather than improving 
some specific use case.
Ken
From: Andrea G. <and...@gm...> - 2007年06月02日 10:51:10
Hi John and All,
On 6/1/07, Andrea Gavana wrote:
> Hi John,
>
> On 5/31/07, John Hunter wrote:
> > On 5/31/07, Andrea Gavana <and...@gm...> wrote:
> > > Hi All,
> > >
> > > I am writing an application (wxPython based) which embeds a big
> > > matplotlib figure as a main panel. Basically, this app shows oil well
> > > producers and gas injectors on a 2D map as dots (every dot represents
> > > its surface location), and a bunch of "streamlines" (i.e., straight
> > > lines or simple curves) which connect injectors and producers.
> > > As the numerical simulation continues, more and more streamlines are
> > > added to the plot (because of new wells or because interference
> > > between wells), and actually I end up having 200 dots plus 800-1200
> > > lines. As the simulation progresses, the plots become slower and
> > > slower...
> > > As the lines are usually 2-points straight lines, I was thinking about
> > > using Line Collections; however, every matplotlib line has a linewidth
> > > value that is dependent on the calculated "interference" effect
> > > between wells, which means I have to build a matplotlib line for every
> > > line connecting an injector with a producer. Moreover, every injector
> > > well has its own colour for the streamlines (there are 33 injector
> > > wells).
> > > Will Line Collections save some time in this case? If not, does anyone
> > > have a suggestion on how I could try to speed-up the plotting? I am
> > > not really familiar with some obscure line/axes properties, so I may
> > > have overlooked something.
> >
> > Yes, a line collection will save you a lot of time with upwards of
> > 1000 line segments. This is the use case they were designed to solve:
> > a bunch of segments of differing widths and colors. One could
> > optimize it for the special case of simple line segments, ie [(x1,y1),
> > (x2, y2)] in which case we could use numpy arrays, but currently we
> > have only the general case of a collection of arbitrary length
> > segments, and since they are not necessarily the same length, we use a
> > sequence of segments rather than an array, and this is slower than it
> > could be.
>
> I managed to get things twice faster than before using Line
> Collections (even though some more optimization can be done). However,
> I am facing a problem with the legend: as I put all the lines in a
> single collection, and I don't want all the lines to be marked in the
> legend but only the ones with biggest linewidth for every injector
> well, how do I get a particular line of the collection in order to
> legend() that line only? I didn't find any method or attribute about
> that. Maybe it is just plain impossible.
>
> Thank you for every hint.
I probably solved this thing, with a workaround instead of a real
solution. Instead of definining a single Line Collection for all the
lines, I just build a Line Collection for every injector well (from
which the lines start). That means I have at most 33 Line Collections
to plot instead of 800-1000 calls to axis.plot(), and I can use the
legend() command. It's not optimal, but it works sufficiently fast.
I still have a couple of questions:
1) I am plotting a bunch of points (which represent the well positions
on a 2D map) and next to them the well names as axis.text() instances.
I don't think something like a "Text Collection" exists, but is there
a way to draw a bunch of texts without a loop?
2) I am currently using the pure Python implementation of the WxAgg
backend, as with wxPython 2.8.4 and the pyd backend I always get the
message that "wxPython2.6-unicode can not be found" or something like
that. Is there any plan to adapt matplotlib to use the available
wxPython installation instead of a predefined one? And, in this
respect, will I get any performance improvement for the kind of plots
I am doing right now?
Thank you for your suggestions.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

Showing 3 results of 3

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