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
|
|
From: Joe L. <jgl...@gm...> - 2013-01-03 00:46:45
|
Using matplotlib.pyplot I create a scatter plot using two symbols, an open
circle, and a filled circle. The legend for this plot shows both labels,
but there is no symbol for the open circles (see
missing_legend_circles.png). Switching to matplotlib.pylab yields the same
result. However, from an "ipython --pylab" session the open circles are
displayed in the legend. This has me more baffled than usual. Here's the
code to reproduce the enclosed figure:
import matplotlib.pyplot as plt
fig = plt.figure()
plot = fig.add_subplot(111)
plot.scatter([1, 2, 3], [4, 5, 6], c = [0.2, 0.4, 0.6], label = 'one',
cmap = 'jet', marker = 'o', edgecolor = 'face')
plot.scatter([1, 2, 3], [7, 6, 5], c = [0.2, 0.4, 0.6], label = 'two',
cmap = 'jet', marker = 'o', edgecolor = 'face',
facecolor = 'none')
plot.legend()
plt.show()
This is with matplotlib 1.1 and 1.2 on Windows 7 with the TkAgg, WxAgg and
WX backends.
Thank you for any help.
-- Joe Louderback
|
|
From: Michael D. <md...@st...> - 2013-01-02 15:57:47
|
I think using the profiler is the best bet here. We've used that in the
past to track down things that take a long time to import quite
successfully. I'm not seeing any slowness here, so that is likely do to
an environmental difference on your machine, implying you'll really need
to run the profiler yourself. I recommend runsnakerun to examine the
profile output -- if you have trouble interpreting it, feel free to send
me your raw profiler data to me off list.
Mike
On 12/31/2012 02:21 PM, C M wrote:
> Resurrecting an old thread here....
>
> On Tue, Mar 29, 2011 at 3:23 PM, David Kremer <da...@da...
> <mailto:da...@da...>> wrote:
>
> > I would recommend running the import in the Python profiler to
> determine
> > where most of the time is going. When I investigated this a few
> years
> > back, it was mainly due to loading the GUI toolkits, which are
> > understandably quite large. You can avoid most of that by using
> the Agg
> > backend. If you're using the Agg backend and still experiencing
> > slowness, it may be that load-up issues have crept back into
> matplotlib
> > since then -- but we need profiling data to figure out where and
> how.
>
>
> Importing Matplotlib is very slow for me, too. For a wxPython
> application with embedded Matplotlib, I am getting "load" times of >
> 20 seconds when "cold" importing matplotlib, with this (circa mid
> 2004) computer setup: Windows XP, sp3, Intel Pentium, 1.70 Ghz, 1 GB
> RAM.
>
> This is, by the way, an import well after Python and wxPython have
> already been loaded into RAM, as it happens by a user action, so none
> of the time involved here is due to loading Python or wxPython (they
> both load more quickly--about 10 seconds to cold import them, my code,
> images, and some other libraries).
>
> First of all: does that amount of time seem appropriate for that fast
> of a system--or is that too long? It definitely *feels* way too long
> from a user perspective (for comparison Word or PowerPoint loads on
> this computer in about 2.5 seconds).
>
> Trying to improve it and following this old thread, I have switched to
>
> matplotlib.use('Agg')
>
> instead of
>
> matplotlib.use('wxAgg')
>
> as suggested to speed things up...but it is no faster.
>
> I see, though, that I also have lines such as:
>
> from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
> from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
>
> Would the presence of these imports obviate the fact that I switched
> to using the Agg instead of the wxAgg? If so, is there any way to use
> something faster here (I suspect not but thought I'd ask).
>
> Also, what else should I consider doing to reduce the import time
> significantly? (I have to learn how to use the profiler, so I haven't
> done that yet).
>
> Thanks,
> Che
>
> >
> > Mike
>
> Thank you a lot for your answer.
>
> I noticed than _matplotlib.pyplot_ is longer to be imported the
> first time than
> if it has already been imported previously (maybe things are
> already loaded in
> ram memory), and we don't need to fetch it from the hard drive
> thanks to the
> kernel.
>
> As far I see, the function calls are the same for the two logs I
> obtained,
> except than the first took 6s instead of 1.4s.
>
>
>
>
> The two logs have been obtained using :
> <code>
> python -m cProfile temp.py
> </code>
>
> where temp.py consist of two lines :
>
> <code>
> #!/usr/bin/env python2
>
> import matplotlib.pyplot
> </code>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: c0ldlimit <c0l...@gm...> - 2013-01-02 03:34:48
|
Hi, I was wondering if anyone had the zip file from John's Advanced matplotlib tutorial <http://www.youtube.com/watch?v=DNRJwENqEUY> ? The referenced bit.ly URL in the video no longer works. Thanks! -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Zip-File-from-John-Hunter-s-Advanced-Matplotlib-Tutorial-tp40133.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Benjamin R. <ben...@ou...> - 2013-01-02 02:22:58
|
On Tuesday, January 1, 2013, Alejandro Weinstein wrote: > Hi: > > When I run the simple_3danim.py example > (http://matplotlib.org/examples/animation/simple_3danim.html) I get > the following error: > > File "simple_3danim.py", line 47, in <module> > ax.set_xlim3d([0.0, 1.0]) > File > "/usr/local/lib/python2.7/dist-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/mpl_toolkits/mplot3d/axes3d.py", > line 571, in set_xlim3d > if right is None and iterable(left): > NameError: global name 'iterable' is not defined > > I can fix this by replacing `ax.set_xlim3d([0.0, 1.0])` by > `ax.set_xlim3d(0.0, 1.0)` (and similarly for the `ax.set_ylim3d` and > `ax.set_zlim3d`). > > I'm running mpl ver. 1.3. > > If this is a bug, I can send a PR. > > Alejandro. Alejandro, Yes, it is a bug, but in axes3d, not the example (both calls should be legit). A PR has already been submitted to the 1.2.x branch and will be merged to master soon. Ben Root |
|
From: Alejandro W. <ale...@gm...> - 2013-01-01 22:59:27
|
Hi: When I run the simple_3danim.py example (http://matplotlib.org/examples/animation/simple_3danim.html) I get the following error: File "simple_3danim.py", line 47, in <module> ax.set_xlim3d([0.0, 1.0]) File "/usr/local/lib/python2.7/dist-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/mpl_toolkits/mplot3d/axes3d.py", line 571, in set_xlim3d if right is None and iterable(left): NameError: global name 'iterable' is not defined I can fix this by replacing `ax.set_xlim3d([0.0, 1.0])` by `ax.set_xlim3d(0.0, 1.0)` (and similarly for the `ax.set_ylim3d` and `ax.set_zlim3d`). I'm running mpl ver. 1.3. If this is a bug, I can send a PR. Alejandro. |
|
From: Daniel H. <dh...@gm...> - 2013-01-01 13:28:49
|
No, I didn't... I believe that in this specific case, I just manually drew a decently sized box around the axis spine and implemented my own contains method to match. It would be nice for every artist to be consistent in this area though. Maybe a MEP is in order to make every artist have a consistent interface as defined by the base class? On Dec 30, 2012 1:00 AM, "Michael McNeil Forbes" < mic...@gm...> wrote: > On 7 Oct 2011, at 4:56 PM, Daniel Hyams wrote: > > I'm wanting to highlight the artist under the cursor with a transparent >> Rectangle patch. To do this, I have very, roughly, in a mouse motion >> handler, >> >> under = self.figure.hitlist(ev) >> if under: >> artist = under[0] >> bbox = artist.get_window_extent() >> highlight = matplotlib.patches.Rectangle(** >> xy=bbox.min,width=bbox.width,**height=bbox.height,alpha=0.2,** >> color='yellow') >> # further code to blit the last captured graph region with highlight >> drawn on top >> >> The main problem is that all artists don't implement get_window_extent(); >> a Text object does, and a legend object does, but the Axis objects do not. >> >> So is there a general way to get the bounding box of an artist? >> > > Did you ever find a way to get the bounding box of an artist? I could use > this too. > > Michael. > |
|
From: C M <cmp...@gm...> - 2012-12-31 19:22:02
|
Resurrecting an old thread here....
On Tue, Mar 29, 2011 at 3:23 PM, David Kremer <da...@da...> wrote:
> > I would recommend running the import in the Python profiler to determine
> > where most of the time is going. When I investigated this a few years
> > back, it was mainly due to loading the GUI toolkits, which are
> > understandably quite large. You can avoid most of that by using the Agg
> > backend. If you're using the Agg backend and still experiencing
> > slowness, it may be that load-up issues have crept back into matplotlib
> > since then -- but we need profiling data to figure out where and how.
>
Importing Matplotlib is very slow for me, too. For a wxPython application
with embedded Matplotlib, I am getting "load" times of > 20 seconds when
"cold" importing matplotlib, with this (circa mid 2004) computer setup:
Windows XP, sp3, Intel Pentium, 1.70 Ghz, 1 GB RAM.
This is, by the way, an import well after Python and wxPython have already
been loaded into RAM, as it happens by a user action, so none of the time
involved here is due to loading Python or wxPython (they both load more
quickly--about 10 seconds to cold import them, my code, images, and some
other libraries).
First of all: does that amount of time seem appropriate for that fast of a
system--or is that too long? It definitely *feels* way too long from a
user perspective (for comparison Word or PowerPoint loads on this computer
in about 2.5 seconds).
Trying to improve it and following this old thread, I have switched to
matplotlib.use('Agg')
instead of
matplotlib.use('wxAgg')
as suggested to speed things up...but it is no faster.
I see, though, that I also have lines such as:
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
Would the presence of these imports obviate the fact that I switched to
using the Agg instead of the wxAgg? If so, is there any way to use
something faster here (I suspect not but thought I'd ask).
Also, what else should I consider doing to reduce the import time
significantly? (I have to learn how to use the profiler, so I haven't done
that yet).
Thanks,
Che
>
> > Mike
>
> Thank you a lot for your answer.
>
> I noticed than _matplotlib.pyplot_ is longer to be imported the first time
> than
> if it has already been imported previously (maybe things are already
> loaded in
> ram memory), and we don't need to fetch it from the hard drive thanks to
> the
> kernel.
>
> As far I see, the function calls are the same for the two logs I obtained,
> except than the first took 6s instead of 1.4s.
>
>
>
>
> The two logs have been obtained using :
> <code>
> python -m cProfile temp.py
> </code>
>
> where temp.py consist of two lines :
>
> <code>
> #!/usr/bin/env python2
>
> import matplotlib.pyplot
> </code>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Benjamin R. <ben...@ou...> - 2012-12-31 16:45:03
|
On Thu, Dec 27, 2012 at 10:08 AM, Diego Avesani <die...@gm...>wrote:
>
> dear all,
> this is my code:
>
> *import numpy as np*
>
> *import matplotlib.pyplot as plt*
>
> *from mpl_toolkits.mplot3d import Axes3D*
>
> *data1Dx = np.genfromtxt('output.dat')*
>
> *xp = data1Dx[:,0]*
>
> *yp = data1Dx[:,1]*
>
> *zpA = data1Dx[:,1]*0+5*
>
> *CA = data1Dx[:,2]*
>
> *CB = data1Dx[:,3]*
>
> *# Create Map*
>
> *cm = plt.get_cmap("RdYlGn")*
>
> *# 3D Plot*
>
> *fig = plt.figure()*
>
> *ax3D = fig.add_subplot(111, projection='3d')*
>
> *ax3D.scatter(xp, zpA,yp, s=10, c=CA,
> marker='o',edgecolor='none',alpha=0.1)*
>
> *plt.show()*
>
> *
> *
>
> I am not able to set the color according to vector CA, all scatters became
> blue.
>
> *
> *
>
> the same thing happens when I put:
>
> #fig.savefig('test.png',format='png',bbox_inches='tight')
>
>
> to overcome this problems I set:
>
>
> *def forceUpdate(event):*
>
> * global scatCollection*
>
> * scatCollection.changed()*
>
> *fig.canvas.mpl_connect('draw_event',forceUpdate)*
>
> *
> *
>
> However the transparency "alpha" does not works.
>
>
> do you think that is this a bugs?
>
> I am running python on ubuntu 12.10
>
>
> thanks
>
>
> Diego
>
>
The color part of this issue is known, and was fixed for v1.1.1, I
believe. Certainly for v1.2.0. Please double-check your matplotlib
version. As for the alpha issue, that is a tough one that I am working on
in a personal branch. The issue is that mplot3d uses transparency as a way
to simulate "depth". Scatter markers further away are "foggier", kind of.
This means that any alpha provided by the user is immediately over-written
upon display.
Ben Root
|
|
From: Adam M. <ram...@gm...> - 2012-12-31 00:47:32
|
On Sat, Dec 29, 2012 at 10:38 PM, Anthony Rollett <ro...@an...> wrote: > I had found it reasonably straightforward to install matplotlib on 10.6 (much harder on 10.7 but that's a story that somebody more versed than I should tell). I was stumped by trying to install basemap because I took the easy way out with the Geos dependency and installed the latter via mac port; this, however, does not give you the include directory. I get the includes from installing geos via MacPorts: $ port contents geos | grep include /opt/local/include/geos.h /opt/local/include/geos/algorithm/Angle.h /opt/local/include/geos/algorithm/BoundaryNodeRule.h /opt/local/include/geos/algorithm/CGAlgorithms.h /opt/local/include/geos/algorithm/CentralEndpointIntersector.h /opt/local/include/geos/algorithm/CentroidArea.h /opt/local/include/geos/algorithm/CentroidLine.h /opt/local/include/geos/algorithm/CentroidPoint.h /opt/local/include/geos/algorithm/ConvexHull.h /opt/local/include/geos/algorithm/ConvexHull.inl /opt/local/include/geos/algorithm/ExtractLineByLocation.h /opt/local/include/geos/algorithm/HCoordinate.h /opt/local/include/geos/algorithm/InteriorPointArea.h /opt/local/include/geos/algorithm/InteriorPointLine.h /opt/local/include/geos/algorithm/InteriorPointPoint.h /opt/local/include/geos/algorithm/LengthIndexOfPoint.h /opt/local/include/geos/algorithm/LengthIndexedLine.h /opt/local/include/geos/algorithm/LengthLocationMap.h /opt/local/include/geos/algorithm/LineIntersector.h /opt/local/include/geos/algorithm/LinearGeometryBuilder.h /opt/local/include/geos/algorithm/LinearIterator.h /opt/local/include/geos/algorithm/LinearLocation.h /opt/local/include/geos/algorithm/LocationIndexOfLine.h /opt/local/include/geos/algorithm/LocationIndexOfPoint.h /opt/local/include/geos/algorithm/MCPointInRing.h /opt/local/include/geos/algorithm/MinimumDiameter.h /opt/local/include/geos/algorithm/NotRepresentableException.h /opt/local/include/geos/algorithm/PointInRing.h /opt/local/include/geos/algorithm/PointLocator.h /opt/local/include/geos/algorithm/RayCrossingCounter.h /opt/local/include/geos/algorithm/RobustDeterminant.h /opt/local/include/geos/algorithm/SIRtreePointInRing.h /opt/local/include/geos/algorithm/SimplePointInRing.h /opt/local/include/geos/algorithm/distance/DiscreteHausdorffDistance.h /opt/local/include/geos/algorithm/distance/DistanceToPoint.h /opt/local/include/geos/algorithm/distance/PointPairDistance.h /opt/local/include/geos/algorithm/locate/IndexedPointInAreaLocator.h /opt/local/include/geos/algorithm/locate/PointOnGeometryLocator.h /opt/local/include/geos/algorithm/locate/SimplePointInAreaLocator.h /opt/local/include/geos/export.h /opt/local/include/geos/geom.h /opt/local/include/geos/geom/BinaryOp.h /opt/local/include/geos/geom/Coordinate.h /opt/local/include/geos/geom/Coordinate.inl /opt/local/include/geos/geom/CoordinateArraySequence.h /opt/local/include/geos/geom/CoordinateArraySequenceFactory.h /opt/local/include/geos/geom/CoordinateArraySequenceFactory.inl /opt/local/include/geos/geom/CoordinateFilter.h /opt/local/include/geos/geom/CoordinateList.h /opt/local/include/geos/geom/CoordinateSequence.h /opt/local/include/geos/geom/CoordinateSequenceFactory.h /opt/local/include/geos/geom/CoordinateSequenceFilter.h /opt/local/include/geos/geom/Dimension.h /opt/local/include/geos/geom/Envelope.h /opt/local/include/geos/geom/Envelope.inl /opt/local/include/geos/geom/Geometry.h /opt/local/include/geos/geom/GeometryCollection.h /opt/local/include/geos/geom/GeometryCollection.inl /opt/local/include/geos/geom/GeometryComponentFilter.h /opt/local/include/geos/geom/GeometryFactory.h /opt/local/include/geos/geom/GeometryFactory.inl /opt/local/include/geos/geom/GeometryFilter.h /opt/local/include/geos/geom/GeometryList.h /opt/local/include/geos/geom/IntersectionMatrix.h /opt/local/include/geos/geom/LineSegment.h /opt/local/include/geos/geom/LineSegment.inl /opt/local/include/geos/geom/LineString.h /opt/local/include/geos/geom/Lineal.h /opt/local/include/geos/geom/LinearRing.h /opt/local/include/geos/geom/Location.h /opt/local/include/geos/geom/MultiLineString.h /opt/local/include/geos/geom/MultiLineString.inl /opt/local/include/geos/geom/MultiPoint.h /opt/local/include/geos/geom/MultiPolygon.h /opt/local/include/geos/geom/MultiPolygon.inl /opt/local/include/geos/geom/Point.h /opt/local/include/geos/geom/Polygon.h /opt/local/include/geos/geom/Polygonal.h /opt/local/include/geos/geom/PrecisionModel.h /opt/local/include/geos/geom/PrecisionModel.inl /opt/local/include/geos/geom/Puntal.h /opt/local/include/geos/geom/Triangle.h /opt/local/include/geos/geom/prep/AbstractPreparedPolygonContains.h /opt/local/include/geos/geom/prep/BasicPreparedGeometry.h /opt/local/include/geos/geom/prep/PreparedGeometry.h /opt/local/include/geos/geom/prep/PreparedGeometryFactory.h /opt/local/include/geos/geom/prep/PreparedLineString.h /opt/local/include/geos/geom/prep/PreparedLineStringIntersects.h /opt/local/include/geos/geom/prep/PreparedPoint.h /opt/local/include/geos/geom/prep/PreparedPolygon.h /opt/local/include/geos/geom/prep/PreparedPolygonContains.h /opt/local/include/geos/geom/prep/PreparedPolygonContainsProperly.h /opt/local/include/geos/geom/prep/PreparedPolygonCovers.h /opt/local/include/geos/geom/prep/PreparedPolygonIntersects.h /opt/local/include/geos/geom/prep/PreparedPolygonPredicate.h /opt/local/include/geos/geom/util/ComponentCoordinateExtracter.h /opt/local/include/geos/geom/util/CoordinateOperation.h /opt/local/include/geos/geom/util/GeometryCombiner.h /opt/local/include/geos/geom/util/GeometryEditor.h /opt/local/include/geos/geom/util/GeometryEditorOperation.h /opt/local/include/geos/geom/util/GeometryExtracter.h /opt/local/include/geos/geom/util/GeometryTransformer.h /opt/local/include/geos/geom/util/LinearComponentExtracter.h /opt/local/include/geos/geom/util/PointExtracter.h /opt/local/include/geos/geom/util/PolygonExtracter.h /opt/local/include/geos/geom/util/ShortCircuitedGeometryVisitor.h /opt/local/include/geos/geom/util/SineStarFactory.h /opt/local/include/geos/geomUtil.h /opt/local/include/geos/geomgraph.h /opt/local/include/geos/geomgraph/Depth.h /opt/local/include/geos/geomgraph/DirectedEdge.h /opt/local/include/geos/geomgraph/DirectedEdge.inl /opt/local/include/geos/geomgraph/DirectedEdgeStar.h /opt/local/include/geos/geomgraph/Edge.h /opt/local/include/geos/geomgraph/EdgeEnd.h /opt/local/include/geos/geomgraph/EdgeEndStar.h /opt/local/include/geos/geomgraph/EdgeIntersection.h /opt/local/include/geos/geomgraph/EdgeIntersectionList.h /opt/local/include/geos/geomgraph/EdgeList.h /opt/local/include/geos/geomgraph/EdgeNodingValidator.h /opt/local/include/geos/geomgraph/EdgeRing.h /opt/local/include/geos/geomgraph/GeometryGraph.h /opt/local/include/geos/geomgraph/GeometryGraph.inl /opt/local/include/geos/geomgraph/GraphComponent.h /opt/local/include/geos/geomgraph/Label.h /opt/local/include/geos/geomgraph/Node.h /opt/local/include/geos/geomgraph/NodeFactory.h /opt/local/include/geos/geomgraph/NodeMap.h /opt/local/include/geos/geomgraph/PlanarGraph.h /opt/local/include/geos/geomgraph/Position.h /opt/local/include/geos/geomgraph/Quadrant.h /opt/local/include/geos/geomgraph/TopologyLocation.h /opt/local/include/geos/geomgraph/index/EdgeSetIntersector.h /opt/local/include/geos/geomgraph/index/MonotoneChain.h /opt/local/include/geos/geomgraph/index/MonotoneChainEdge.h /opt/local/include/geos/geomgraph/index/MonotoneChainIndexer.h /opt/local/include/geos/geomgraph/index/SegmentIntersector.h /opt/local/include/geos/geomgraph/index/SimpleEdgeSetIntersector.h /opt/local/include/geos/geomgraph/index/SimpleMCSweepLineIntersector.h /opt/local/include/geos/geomgraph/index/SimpleSweepLineIntersector.h /opt/local/include/geos/geomgraph/index/SweepLineEvent.h /opt/local/include/geos/geomgraph/index/SweepLineEventObj.h /opt/local/include/geos/geomgraph/index/SweepLineSegment.h /opt/local/include/geos/geomgraphindex.h /opt/local/include/geos/geosAlgorithm.h /opt/local/include/geos/index/ItemVisitor.h /opt/local/include/geos/index/SpatialIndex.h /opt/local/include/geos/index/bintree/Bintree.h /opt/local/include/geos/index/bintree/Interval.h /opt/local/include/geos/index/bintree/Key.h /opt/local/include/geos/index/bintree/Node.h /opt/local/include/geos/index/bintree/NodeBase.h /opt/local/include/geos/index/bintree/Root.h /opt/local/include/geos/index/chain/MonotoneChain.h /opt/local/include/geos/index/chain/MonotoneChainBuilder.h /opt/local/include/geos/index/chain/MonotoneChainOverlapAction.h /opt/local/include/geos/index/chain/MonotoneChainSelectAction.h /opt/local/include/geos/index/intervalrtree/IntervalRTreeBranchNode.h /opt/local/include/geos/index/intervalrtree/IntervalRTreeLeafNode.h /opt/local/include/geos/index/intervalrtree/IntervalRTreeNode.h /opt/local/include/geos/index/intervalrtree/SortedPackedIntervalRTree.h /opt/local/include/geos/index/quadtree/DoubleBits.h /opt/local/include/geos/index/quadtree/IntervalSize.h /opt/local/include/geos/index/quadtree/Key.h /opt/local/include/geos/index/quadtree/Node.h /opt/local/include/geos/index/quadtree/NodeBase.h /opt/local/include/geos/index/quadtree/Quadtree.h /opt/local/include/geos/index/quadtree/Root.h /opt/local/include/geos/index/strtree/AbstractNode.h /opt/local/include/geos/index/strtree/AbstractSTRtree.h /opt/local/include/geos/index/strtree/Boundable.h /opt/local/include/geos/index/strtree/Interval.h /opt/local/include/geos/index/strtree/ItemBoundable.h /opt/local/include/geos/index/strtree/SIRtree.h /opt/local/include/geos/index/strtree/STRtree.h /opt/local/include/geos/index/sweepline/SweepLineEvent.h /opt/local/include/geos/index/sweepline/SweepLineIndex.h /opt/local/include/geos/index/sweepline/SweepLineInterval.h /opt/local/include/geos/index/sweepline/SweepLineOverlapAction.h /opt/local/include/geos/indexBintree.h /opt/local/include/geos/indexChain.h /opt/local/include/geos/indexQuadtree.h /opt/local/include/geos/indexStrtree.h /opt/local/include/geos/indexSweepline.h /opt/local/include/geos/inline.h /opt/local/include/geos/io.h /opt/local/include/geos/io/ByteOrderDataInStream.h /opt/local/include/geos/io/ByteOrderDataInStream.inl /opt/local/include/geos/io/ByteOrderValues.h /opt/local/include/geos/io/CLocalizer.h /opt/local/include/geos/io/ParseException.h /opt/local/include/geos/io/StringTokenizer.h /opt/local/include/geos/io/WKBConstants.h /opt/local/include/geos/io/WKBReader.h /opt/local/include/geos/io/WKBWriter.h /opt/local/include/geos/io/WKTReader.h /opt/local/include/geos/io/WKTReader.inl /opt/local/include/geos/io/WKTWriter.h /opt/local/include/geos/io/Writer.h /opt/local/include/geos/noding.h /opt/local/include/geos/noding/BasicSegmentString.h /opt/local/include/geos/noding/FastNodingValidator.h /opt/local/include/geos/noding/FastSegmentSetIntersectionFinder.h /opt/local/include/geos/noding/IntersectionAdder.h /opt/local/include/geos/noding/IntersectionFinderAdder.h /opt/local/include/geos/noding/IteratedNoder.h /opt/local/include/geos/noding/MCIndexNoder.h /opt/local/include/geos/noding/MCIndexNoder.inl /opt/local/include/geos/noding/MCIndexSegmentSetMutualIntersector.h /opt/local/include/geos/noding/NodableSegmentString.h /opt/local/include/geos/noding/NodedSegmentString.h /opt/local/include/geos/noding/Noder.h /opt/local/include/geos/noding/NodingValidator.h /opt/local/include/geos/noding/Octant.h /opt/local/include/geos/noding/OrientedCoordinateArray.h /opt/local/include/geos/noding/ScaledNoder.h /opt/local/include/geos/noding/SegmentIntersectionDetector.h /opt/local/include/geos/noding/SegmentIntersector.h /opt/local/include/geos/noding/SegmentNode.h /opt/local/include/geos/noding/SegmentNodeList.h /opt/local/include/geos/noding/SegmentPointComparator.h /opt/local/include/geos/noding/SegmentSetMutualIntersector.h /opt/local/include/geos/noding/SegmentString.h /opt/local/include/geos/noding/SegmentString.inl /opt/local/include/geos/noding/SegmentStringUtil.h /opt/local/include/geos/noding/SimpleNoder.h /opt/local/include/geos/noding/SingleInteriorIntersectionFinder.h /opt/local/include/geos/noding/SinglePassNoder.h /opt/local/include/geos/noding/snapround/HotPixel.h /opt/local/include/geos/noding/snapround/HotPixel.inl /opt/local/include/geos/noding/snapround/MCIndexPointSnapper.h /opt/local/include/geos/noding/snapround/MCIndexSnapRounder.h /opt/local/include/geos/noding/snapround/SimpleSnapRounder.h /opt/local/include/geos/nodingSnapround.h /opt/local/include/geos/opBuffer.h /opt/local/include/geos/opDistance.h /opt/local/include/geos/opLinemerge.h /opt/local/include/geos/opOverlay.h /opt/local/include/geos/opPolygonize.h /opt/local/include/geos/opPredicate.h /opt/local/include/geos/opRelate.h /opt/local/include/geos/opValid.h /opt/local/include/geos/operation.h /opt/local/include/geos/operation/GeometryGraphOperation.h /opt/local/include/geos/operation/IsSimpleOp.h /opt/local/include/geos/operation/buffer/BufferBuilder.h /opt/local/include/geos/operation/buffer/BufferOp.h /opt/local/include/geos/operation/buffer/BufferParameters.h /opt/local/include/geos/operation/buffer/BufferSubgraph.h /opt/local/include/geos/operation/buffer/OffsetCurveBuilder.h /opt/local/include/geos/operation/buffer/OffsetCurveSetBuilder.h /opt/local/include/geos/operation/buffer/OffsetSegmentGenerator.h /opt/local/include/geos/operation/buffer/OffsetSegmentString.h /opt/local/include/geos/operation/buffer/RightmostEdgeFinder.h /opt/local/include/geos/operation/buffer/SubgraphDepthLocater.h /opt/local/include/geos/operation/distance/ConnectedElementLocationFilter.h /opt/local/include/geos/operation/distance/ConnectedElementPointFilter.h /opt/local/include/geos/operation/distance/DistanceOp.h /opt/local/include/geos/operation/distance/GeometryLocation.h /opt/local/include/geos/operation/linemerge/EdgeString.h /opt/local/include/geos/operation/linemerge/LineMergeDirectedEdge.h /opt/local/include/geos/operation/linemerge/LineMergeEdge.h /opt/local/include/geos/operation/linemerge/LineMergeGraph.h /opt/local/include/geos/operation/linemerge/LineMerger.h /opt/local/include/geos/operation/linemerge/LineSequencer.h /opt/local/include/geos/operation/overlay/EdgeSetNoder.h /opt/local/include/geos/operation/overlay/ElevationMatrix.h /opt/local/include/geos/operation/overlay/ElevationMatrixCell.h /opt/local/include/geos/operation/overlay/FuzzyPointLocator.h /opt/local/include/geos/operation/overlay/LineBuilder.h /opt/local/include/geos/operation/overlay/MaximalEdgeRing.h /opt/local/include/geos/operation/overlay/MinimalEdgeRing.h /opt/local/include/geos/operation/overlay/MinimalEdgeRing.inl /opt/local/include/geos/operation/overlay/OffsetPointGenerator.h /opt/local/include/geos/operation/overlay/OverlayNodeFactory.h /opt/local/include/geos/operation/overlay/OverlayOp.h /opt/local/include/geos/operation/overlay/OverlayResultValidator.h /opt/local/include/geos/operation/overlay/PointBuilder.h /opt/local/include/geos/operation/overlay/PolygonBuilder.h /opt/local/include/geos/operation/overlay/snap/GeometrySnapper.h /opt/local/include/geos/operation/overlay/snap/LineStringSnapper.h /opt/local/include/geos/operation/overlay/snap/SnapIfNeededOverlayOp.h /opt/local/include/geos/operation/overlay/snap/SnapOverlayOp.h /opt/local/include/geos/operation/polygonize/EdgeRing.h /opt/local/include/geos/operation/polygonize/PolygonizeDirectedEdge.h /opt/local/include/geos/operation/polygonize/PolygonizeEdge.h /opt/local/include/geos/operation/polygonize/PolygonizeGraph.h /opt/local/include/geos/operation/polygonize/Polygonizer.h /opt/local/include/geos/operation/predicate/RectangleContains.h /opt/local/include/geos/operation/predicate/RectangleIntersects.h /opt/local/include/geos/operation/predicate/SegmentIntersectionTester.h /opt/local/include/geos/operation/relate/EdgeEndBuilder.h /opt/local/include/geos/operation/relate/EdgeEndBundle.h /opt/local/include/geos/operation/relate/EdgeEndBundleStar.h /opt/local/include/geos/operation/relate/RelateComputer.h /opt/local/include/geos/operation/relate/RelateNode.h /opt/local/include/geos/operation/relate/RelateNodeFactory.h /opt/local/include/geos/operation/relate/RelateNodeGraph.h /opt/local/include/geos/operation/relate/RelateOp.h /opt/local/include/geos/operation/sharedpaths/SharedPathsOp.h /opt/local/include/geos/operation/union/CascadedPolygonUnion.h /opt/local/include/geos/operation/union/CascadedUnion.h /opt/local/include/geos/operation/union/GeometryListHolder.h /opt/local/include/geos/operation/union/PointGeometryUnion.h /opt/local/include/geos/operation/union/UnaryUnionOp.h /opt/local/include/geos/operation/valid/ConnectedInteriorTester.h /opt/local/include/geos/operation/valid/ConsistentAreaTester.h /opt/local/include/geos/operation/valid/IsValidOp.h /opt/local/include/geos/operation/valid/QuadtreeNestedRingTester.h /opt/local/include/geos/operation/valid/RepeatedPointTester.h /opt/local/include/geos/operation/valid/SimpleNestedRingTester.h /opt/local/include/geos/operation/valid/SweeplineNestedRingTester.h /opt/local/include/geos/operation/valid/TopologyValidationError.h /opt/local/include/geos/planargraph.h /opt/local/include/geos/planargraph/DirectedEdge.h /opt/local/include/geos/planargraph/DirectedEdgeStar.h /opt/local/include/geos/planargraph/Edge.h /opt/local/include/geos/planargraph/GraphComponent.h /opt/local/include/geos/planargraph/Node.h /opt/local/include/geos/planargraph/NodeMap.h /opt/local/include/geos/planargraph/PlanarGraph.h /opt/local/include/geos/planargraph/Subgraph.h /opt/local/include/geos/planargraph/algorithm/ConnectedSubgraphFinder.h /opt/local/include/geos/platform.h /opt/local/include/geos/precision.h /opt/local/include/geos/precision/CommonBits.h /opt/local/include/geos/precision/CommonBitsOp.h /opt/local/include/geos/precision/CommonBitsRemover.h /opt/local/include/geos/precision/EnhancedPrecisionOp.h /opt/local/include/geos/precision/SimpleGeometryPrecisionReducer.h /opt/local/include/geos/profiler.h /opt/local/include/geos/simplify/DouglasPeuckerLineSimplifier.h /opt/local/include/geos/simplify/DouglasPeuckerSimplifier.h /opt/local/include/geos/simplify/LineSegmentIndex.h /opt/local/include/geos/simplify/TaggedLineSegment.h /opt/local/include/geos/simplify/TaggedLineString.h /opt/local/include/geos/simplify/TaggedLineStringSimplifier.h /opt/local/include/geos/simplify/TaggedLinesSimplifier.h /opt/local/include/geos/simplify/TopologyPreservingSimplifier.h /opt/local/include/geos/spatialIndex.h /opt/local/include/geos/timeval.h /opt/local/include/geos/unload.h /opt/local/include/geos/util.h /opt/local/include/geos/util/Assert.h /opt/local/include/geos/util/AssertionFailedException.h /opt/local/include/geos/util/CoordinateArrayFilter.h /opt/local/include/geos/util/GEOSException.h /opt/local/include/geos/util/GeometricShapeFactory.h /opt/local/include/geos/util/IllegalArgumentException.h /opt/local/include/geos/util/IllegalStateException.h /opt/local/include/geos/util/Machine.h /opt/local/include/geos/util/TopologyException.h /opt/local/include/geos/util/UniqueCoordinateArrayFilter.h /opt/local/include/geos/util/UnsupportedOperationException.h /opt/local/include/geos/util/math.h /opt/local/include/geos/version.h /opt/local/include/geos_c.h $ Cheers Adam |
|
From: Michael M. F. <mic...@gm...> - 2012-12-30 06:00:06
|
On 7 Oct 2011, at 4:56 PM, Daniel Hyams wrote: > I'm wanting to highlight the artist under the cursor with a > transparent Rectangle patch. To do this, I have very, roughly, in a > mouse motion handler, > > under = self.figure.hitlist(ev) > if under: > artist = under[0] > bbox = artist.get_window_extent() > highlight = > matplotlib > .patches > .Rectangle > (xy > = > bbox.min,width=bbox.width,height=bbox.height,alpha=0.2,color='yellow') > # further code to blit the last captured graph region with > highlight drawn on top > > The main problem is that all artists don't implement > get_window_extent(); a Text object does, and a legend object does, > but the Axis objects do not. > > So is there a general way to get the bounding box of an artist? Did you ever find a way to get the bounding box of an artist? I could use this too. Michael. |
|
From: Anthony R. <ro...@an...> - 2012-12-30 04:38:41
|
I had found it reasonably straightforward to install matplotlib on 10.6 (much harder on 10.7 but that's a story that somebody more versed than I should tell). I was stumped by trying to install basemap because I took the easy way out with the Geos dependency and installed the latter via mac port; this, however, does not give you the include directory. So, I removed Geos from my mac port tree and installed it by hand (in /Users/Shared so that I can see it easily). Then I had to use "sudo python setup.py install" so that the setup could access the python installation. The first test worked just fine so I appear to be in good shape. FYI, tony rollett. |
|
From: Martin M. <mmo...@fo...> - 2012-12-29 22:08:26
|
Hi, I recently updated to matplotlib-1.2.0 from 1.1.1 and my figures have rotated order of color bars stacked upon each other. Here is a small testcase I sketched now and two generated png files are attached, generated by the two different matplotlib versions. The colornames are just bad in the legend, just to show that the order of input data is same in both cases. I would be grateful for any comments on this. Thank you, Martin |
|
From: Diego A. <die...@gm...> - 2012-12-27 15:08:53
|
dear all,
this is my code:
*import numpy as np*
*import matplotlib.pyplot as plt*
*from mpl_toolkits.mplot3d import Axes3D*
*data1Dx = np.genfromtxt('output.dat')*
*xp = data1Dx[:,0]*
*yp = data1Dx[:,1]*
*zpA = data1Dx[:,1]*0+5*
*CA = data1Dx[:,2]*
*CB = data1Dx[:,3]*
*# Create Map*
*cm = plt.get_cmap("RdYlGn")*
*# 3D Plot*
*fig = plt.figure()*
*ax3D = fig.add_subplot(111, projection='3d')*
*ax3D.scatter(xp, zpA,yp, s=10, c=CA, marker='o',edgecolor='none',alpha=0.1)
*
*plt.show()*
*
*
I am not able to set the color according to vector CA, all scatters became
blue.
*
*
the same thing happens when I put:
#fig.savefig('test.png',format='png',bbox_inches='tight')
to overcome this problems I set:
*def forceUpdate(event):*
* global scatCollection*
* scatCollection.changed()*
*fig.canvas.mpl_connect('draw_event',forceUpdate)*
*
*
However the transparency "alpha" does not works.
do you think that is this a bugs?
I am running python on ubuntu 12.10
thanks
Diego
|
|
From: Diego A. <die...@gm...> - 2012-12-26 22:21:31
|
dear Paul, thanks a lot it works Diego On 26 December 2012 14:53, Paul Hobson <pmh...@gm...> wrote: > On Wed, Dec 26, 2012 at 6:49 AM, Diego Avesani <die...@gm...>wrote: > >> Dear all, >> I need to plot a 2D rectangle in a 3D plot. >> >> I already know how to put a circle. I have started from: >> http://matplotlib.org/examples/mplot3d/pathpatch3d_demo.html >> and inserting the alpha parameter. >> >> *p = Circle((5, 5), 2,alpha=0.1)* >> *ax.add_patch(p)* >> *art3d.pathpatch_2d_to_3d(p, z=5,zdir="y")* >> * >> * >> How can I do the same but with a rectangle instead of a circle? >> >> Thanks all >> >> > Just change a couple of lines: > - from matplotlib.patches import Circle, PathPatch > + from matplotlib.patches import Rectangle, PathPatch > > and > - p = Circle((5,5), 3) > + p = Rectangle((1,1), 2, 4) > |
|
From: Paul H. <pmh...@gm...> - 2012-12-26 17:53:25
|
On Wed, Dec 26, 2012 at 6:49 AM, Diego Avesani <die...@gm...>wrote: > Dear all, > I need to plot a 2D rectangle in a 3D plot. > > I already know how to put a circle. I have started from: > http://matplotlib.org/examples/mplot3d/pathpatch3d_demo.html > and inserting the alpha parameter. > > *p = Circle((5, 5), 2,alpha=0.1)* > *ax.add_patch(p)* > *art3d.pathpatch_2d_to_3d(p, z=5,zdir="y")* > * > * > How can I do the same but with a rectangle instead of a circle? > > Thanks all > > Just change a couple of lines: - from matplotlib.patches import Circle, PathPatch + from matplotlib.patches import Rectangle, PathPatch and - p = Circle((5,5), 3) + p = Rectangle((1,1), 2, 4) |
|
From: Diego A. <die...@gm...> - 2012-12-26 14:49:25
|
Dear all, I need to plot a 2D rectangle in a 3D plot. I already know how to put a circle. I have started from: http://matplotlib.org/examples/mplot3d/pathpatch3d_demo.html and inserting the alpha parameter. *p = Circle((5, 5), 2,alpha=0.1)* *ax.add_patch(p)* *art3d.pathpatch_2d_to_3d(p, z=5,zdir="y")* * * How can I do the same but with a rectangle instead of a circle? Thanks all * * Diego |
|
From: Alejandro W. <ale...@gm...> - 2012-12-25 19:10:40
|
Hi: I installed MPL from sources. Everything works OK. Then I installed pandas from sources. When I import pandas I get the warning /usr/local/lib/python2.7/dist-packages/pytz/__init__.py:35: UserWarning: Module pytz was already imported from /usr/local/lib/python2.7/dist-packages/pytz/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/pytz-2012h-py2.7.egg is being added to sys.path from pkg_resources import resource_stream /usr/local/lib/python2.7/dist-packages/pytz/__init__.py:35: UserWarning: Module dateutil was already imported from /usr/local/lib/python2.7/dist-packages/dateutil/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/python_dateutil-2.1-py2.7.egg is being added to sys.path from pkg_resources import resource_stream With the exception of this warning, everything else works OK. I was able to get rid of this warning by reinstalling MPL. This was reported a week ago as pandas issue: https://github.com/pydata/pandas/issues/2562 Wes McKinney recommended to bring this up here. Any comments? Alejandro |
|
From: Steven B. <bo...@ph...> - 2012-12-21 22:56:16
|
I normally just plot a whole bunch of arrays... and then add the color bar
sc1 = f1s1.scatter(array[:,0], array[:,1], c=array[:,2], s=50,
cmap='spectral',edgecolor='w')
bar = pyl.colorbar(sc1)
bar.set_label("label")
Steven
On 12/20/12 5:54 PM, Paul Hobson wrote:
> On Thu, Dec 20, 2012 at 1:05 PM, Kynn Jones <ky...@gm...
> <mailto:ky...@gm...>> wrote:
>
> I create PNG files of scatterplots with code that, in essence,
> goes as in the sketch below:
>
>
> cmap = (matplotlib.color.LinearSegmentedColormap.
> from_list('blueWhiteRed', ['blue', 'white', 'red']))
>
> fig = matplotlib.figure.Figure(figsize=(4, 4), dpi=72)
> ax = fig.gca()
>
> for marker in 'o s ^ *'.split():
>
> X, Y, COLOR = zip(*((record.x, record.y, record.level)
> for record in data if record.marker ==
> marker))
>
> ax.scatter(X, Y, marker=marker,
> c=COLOR, vmin=0, vmax=1, cmap=cmap,
> **otherkwargs)
>
> # various settings of ticks, labels, etc. omitted
>
> canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig)
> fig.set_canvas(canvas)
>
> # IMPORTANT: the generated figure is *not* displayed on the
> screen, but
> # rather it is output to disk as a PNG file:
> canvas.print_png('/path/to/output/fig.png')
>
>
>
> My question is this:
>
> What do I need to add to the code above to get a vertical colorbar
> (representing the colormap incmap) along the plot's right edge?
>
> I word the question in this way because I am not sufficiently
> facile with Matplotlib to deviate too far from the working code above.
>
> In particular, my code *has* to be able to produce PNG files
> *non-interactively*, so the last line in the code sketch above is
> really essential.
>
> Thanks in advance!
>
> kj
>
>
> Can you provide some more information and a self-contained example?
> What is your record object? Is it a pandas dataframe? Are the limits
> of record.level consistent with vmax and vmin kwargs fed in the call
> to ax.scatter?
>
> Typically you can just do:
>
> import matplotlib.pyplot as plt
> # blah blah
> fig, ax = plt.subplots()
> s = ax.scatter()...
> cb = plt.colorbar(s)
> cb.set_label('Cbar Label Here')
>
> Also, I don't think you need to mess with the backend stuff. Just do
> fig.savefig('figname.png'). If you need separate markers for each set,
> make a single call to scatter for each data group, and use numpy to
> figure out what the appropriate vmax a vmin limits are for the colorbar.
>
> -paul
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Steven Boada
Doctoral Student
Dept of Physics and Astronomy
Texas A&M University
bo...@ph...
|
|
From: Paul H. <pmh...@gm...> - 2012-12-20 23:54:40
|
On Thu, Dec 20, 2012 at 1:05 PM, Kynn Jones <ky...@gm...> wrote:
> I create PNG files of scatterplots with code that, in essence, goes as in
> the sketch below:
>
>
> cmap = (matplotlib.color.LinearSegmentedColormap.
> from_list('blueWhiteRed', ['blue', 'white', 'red']))
>
> fig = matplotlib.figure.Figure(figsize=(4, 4), dpi=72)
> ax = fig.gca()
>
> for marker in 'o s ^ *'.split():
>
> X, Y, COLOR = zip(*((record.x, record.y, record.level)
> for record in data if record.marker == marker))
>
> ax.scatter(X, Y, marker=marker,
> c=COLOR, vmin=0, vmax=1, cmap=cmap,
> **otherkwargs)
>
> # various settings of ticks, labels, etc. omitted
>
> canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig)
> fig.set_canvas(canvas)
>
> # IMPORTANT: the generated figure is *not* displayed on the screen, but
> # rather it is output to disk as a PNG file:
> canvas.print_png('/path/to/output/fig.png')
>
>
>
> My question is this:
>
> What do I need to add to the code above to get a vertical colorbar
> (representing the colormap incmap) along the plot's right edge?
>
> I word the question in this way because I am not sufficiently facile with
> Matplotlib to deviate too far from the working code above.
>
> In particular, my code *has* to be able to produce PNG files
> *non-interactively*, so the last line in the code sketch above is really
> essential.
>
> Thanks in advance!
>
> kj
>
>
Can you provide some more information and a self-contained example? What is
your record object? Is it a pandas dataframe? Are the limits of
record.level consistent with vmax and vmin kwargs fed in the call to
ax.scatter?
Typically you can just do:
import matplotlib.pyplot as plt
# blah blah
fig, ax = plt.subplots()
s = ax.scatter()...
cb = plt.colorbar(s)
cb.set_label('Cbar Label Here')
Also, I don't think you need to mess with the backend stuff. Just do
fig.savefig('figname.png'). If you need separate markers for each set, make
a single call to scatter for each data group, and use numpy to figure out
what the appropriate vmax a vmin limits are for the colorbar.
-paul
|
|
From: Kynn J. <ky...@gm...> - 2012-12-20 21:06:04
|
I create PNG files of scatterplots with code that, in essence, goes as in
the sketch below:
cmap = (matplotlib.color.LinearSegmentedColormap.
from_list('blueWhiteRed', ['blue', 'white', 'red']))
fig = matplotlib.figure.Figure(figsize=(4, 4), dpi=72)
ax = fig.gca()
for marker in 'o s ^ *'.split():
X, Y, COLOR = zip(*((record.x, record.y, record.level)
for record in data if record.marker == marker))
ax.scatter(X, Y, marker=marker,
c=COLOR, vmin=0, vmax=1, cmap=cmap,
**otherkwargs)
# various settings of ticks, labels, etc. omitted
canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig)
fig.set_canvas(canvas)
# IMPORTANT: the generated figure is *not* displayed on the screen, but
# rather it is output to disk as a PNG file:
canvas.print_png('/path/to/output/fig.png')
My question is this:
What do I need to add to the code above to get a vertical colorbar
(representing the colormap incmap) along the plot's right edge?
I word the question in this way because I am not sufficiently facile with
Matplotlib to deviate too far from the working code above.
In particular, my code *has* to be able to produce PNG files
*non-interactively*, so the last line in the code sketch above is really
essential.
Thanks in advance!
kj
|
|
From: Benjamin R. <ben...@ou...> - 2012-12-20 20:23:53
|
My apologies, I misread your post. I was assuming that you were trying to create a github account in order to file a bug report. But again, this isn't a matplotlib issue, this is a nabble issue. Ben Root |
|
From: tmp8PG2K <ky...@gm...> - 2012-12-20 19:36:12
|
Benjamin Root-2 wrote > This would be a question for github.com, not for this mailing list. We do > not control github's account creation process. Sorry, I'm confused by your mention of github. Did you mean "nabble"? I'm accessing the list through http://matplotlib.1069221.n5.nabble.com... -- View this message in context: http://matplotlib.1069221.n5.nabble.com/This-user-name-is-already-in-use-tp40094p40096.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Benjamin R. <ben...@ou...> - 2012-12-20 19:10:51
|
This would be a question for github.com, not for this mailing list. We do not control github's account creation process. Ben Root On Thu, Dec 20, 2012 at 1:27 PM, tmp8PG2K <ky...@gm...> wrote: > When I try to register, I run into the error "This user name is already in > use" (even though this username does not show up in the "People" listing at > > http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=app_people&node=2 > ). > > If there already is a user with this name I'm sure it's me, but there's no > way for me to log in by providing a user name, or to have a password or a > link sent to the email associated with the username in question. > > How can I free up my username so I can register with it? > > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/This-user-name-is-already-in-use-tp40094.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: tmp8PG2K <ky...@gm...> - 2012-12-20 18:27:26
|
When I try to register, I run into the error "This user name is already in use" (even though this username does not show up in the "People" listing at http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=app_people&node=2). If there already is a user with this name I'm sure it's me, but there's no way for me to log in by providing a user name, or to have a password or a link sent to the email associated with the username in question. How can I free up my username so I can register with it? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/This-user-name-is-already-in-use-tp40094.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Michael D. <md...@st...> - 2012-12-20 13:28:43
|
When you recompile Python in a new unicode mode, you then need to recompile all extensions (such as Numpy), since an extension compiled for one mode will not work with the other. Annoying if you have a lot of extensions. However, I don't think that UCS4 mode is required for Tkinter -- it could just be that the Tkinter you have compiled was compiled against a Python of a different unicode mode. (RHEL builds its python packages with --enable-unicode=UCS4, so if you're using the RH package for Tkinter with a self compiled Python, that may be what you're running into.) Mike On 12/19/2012 06:08 PM, Kurt Peters wrote: > I had to compile and install Python 2.7 on RHEL with the > --enable-unicode=USC4 to get it to work with Tkinter. Unfortunately, I'm > now trying to install numpy, and get an error when importing it into python > "ImportError: numpy/core/multiarray.so: undefined symbol: > PyUnicodeUCS2_AsASCIIString". > > Is there are way to get the two to play together nicely? Such as > recompiling numpy with USC4 support? > KURT > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |