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
|
3
(3) |
4
(6) |
5
(5) |
6
(5) |
7
|
8
|
9
(1) |
10
(5) |
11
(11) |
12
(6) |
13
(6) |
14
(4) |
15
(1) |
16
(1) |
17
(10) |
18
(20) |
19
(5) |
20
(7) |
21
(1) |
22
|
23
|
24
|
25
(1) |
26
(3) |
27
(1) |
28
|
29
(1) |
30
(2) |
31
(3) |
|
|
|
|
|
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 |
From: Kurt P. <pet...@ms...> - 2012-12-19 23:08:07
|
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 |
From: Yannick C. <yan...@la...> - 2012-12-19 20:55:36
|
Hi, I used to make animated figures generated with scripts similar to the one attached. It works fine with GTKAgg backend, but does not work with QT4Agg one: the figure just flashes at the end of the animation! Is it a bug in Qt4Agg, or an unimplemented feature? Is there any way other than switching back to GTKAgg specifically? Cheers, Yannick PS: I now about the recent Animation module, but I don't want to update all my scripts to this new framework. |
From: Benjamin R. <ben...@ou...> - 2012-12-19 16:28:26
|
On Fri, Dec 14, 2012 at 8:55 AM, p.bingham <p.b...@ke...> wrote: > I've created a class that allows a user to add several charts to a > MATPLOTLIB > window. These can be either a line chart or a bar chart. It also has the > feature that when a chart has already been added to the window (as > identified from rowID) rather than draw a new plot it will replace the data > in the old plot. ie it allows for updates (animation) > > This works grand for the line plot but I get corruption when plotting > several bar charts. The class looks like: > > import math > > class TFrmPlot(): > > def __init__(self, point_lists, deleteCallback, plotType, rowID): > import matplotlib > matplotlib.interactive( True ) > matplotlib.use( 'WXAgg' ) > > import matplotlib.pyplot as plt > self.plt = plt > self.fig = plt.figure() > self.fig.canvas.mpl_connect('close_event', self.on_close) > > import matplotlib.axes as ax > self.ax = ax > > self.deleteCallback = deleteCallback > self.chartArray = [] > self.addChart(point_lists, plotType, rowID) > > def close(self): > self.plt.close('all') > #self.fig.close() > > def replaceChartDataIfChartExists(self, point_lists, rowID): > if rowID==0: > pass > for chart in self.chartArray: > for plot in chart.plots: > if plot.rowID == rowID: > plot.points = point_lists > if plot.plotType=="Point": > > plot.plotItem.set_data(point_lists[0],point_lists[1]) > chart.subPlot.draw_artist(plot.plotItem) > self.fig.canvas.blit(chart.subPlot.bbox) > else: > for rect, h in zip(plot.plotItem, > point_lists[1]): > rect.set_height(h) > chart.subPlot.relim() > chart.subPlot.autoscale_view(True,True,True) > self.plt.draw() > return True > return False > > def addChart(self, point_lists, plotType, rowID): > self.chartArray.append(TChart(rowID,plotType,point_lists)) > self._drawAll() > > def addPlot(self, point_lists, plotType, rowID): > chartNum = len(self.chartArray) > > self.chartArray[chartNum-1].plots.append(TPlot(rowID,plotType,point_lists)) > self._drawAll() > > def on_close(self, event): > self.deleteCallback() > > def _drawAll(self): > self.plt.clf() > numSubPlots = len(self.chartArray) > numCols = self._noCols(numSubPlots) > IndexConverter = TIndexConverter(numCols) > subPlot = None > for chartIndex in range(0,numSubPlots): > if numSubPlots==1: > subPlot = self.fig.add_subplot(1,1,1) > elif numSubPlots==2: > subPlot = self.fig.add_subplot(1,2,chartIndex+1) > else: > subPlot = > self.fig.add_subplot(2,numCols,IndexConverter._getSubPlotIndex(chartIndex)) > subPlot.relim() > subPlot.autoscale_view(True,True,True) > self.chartArray[chartIndex].subPlot = subPlot > self._drawSubs(self.chartArray[chartIndex]) > self.plt.show() > > def _drawSubs(self, chart): > for plot in chart.plots: > if plot.plotType=="Point": > chart.subPlot.plot(plot.points[0],plot.points[1]) > plot.plotItem = > chart.subPlot.lines[len(chart.subPlot.lines)-1] > else: > kwargs = {"alpha":0.5} > plot.plotItem = > chart.subPlot.bar(plot.points[0],plot.points[1], > width=self._calculateleastDiff(plot.points[0]), **kwargs) > > def _noCols(self, numSubPlots): > return math.ceil(float(numSubPlots)/2.0) > > def _calculateleastDiff(self, xValues): > xValues2 = sorted(xValues) > leastDiff = None > lastValue = None > for value in xValues2: > if lastValue is not None: > diff = value-lastValue > if leastDiff is None or diff < leastDiff: > leastDiff = diff > lastValue = value > return leastDiff > > This is a bit long so to summarise: > > addChart -- basically adds a new subplot > > addPlot -- adds a new line or bar to an existing subplot > > replaceChartDataIfChartExists -- refreshes the data if the ID already > exists > > The dummy data that I'm using just plots a positive gradient and a negative > gradient line in succession. My plots however can get into a state where > one/some or all of the bar plots become corrupted. It looks almost like the > x/y axis has been rotated, with the individual bars not starting from the > x-axis. The issue is intermittent; sometimes I will get several plots as > expected. Once a plot becomes corrupted all future updates remain > corrupted. > > Corrupted Chart: > <http://matplotlib.1069221.n5.nabble.com/file/n40023/corrupted.png> > > Your code is needlessly complex, and it is more likely that the bug lies in there rather than with matplotlib. First, you really shouldn't ever do imports within a class, and it makes no sense to assign those imports as members of the class. Second, you shouldn't need to do complex subplot management to do what you need, matplotlib has done it for you already. For example, the fig.add_subplot() command will simply return the axes to you if it has already been created. Alternatively, you might be interested in using the mpl_toolkit.axes_grid1 module: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html but it might be overkill in your case. If you can simplify your code significantly, and still encounter the corruption issue, please come back and post the code so we can help you out. Cheers! Ben Root |
From: Benjamin R. <ben...@ou...> - 2012-12-19 16:08:50
|
On Sun, Dec 16, 2012 at 4:41 PM, David Huard <dav...@gm...> wrote: > Hi all, > > I'm wondering if anyone knows how to compute colorbar limits (vmin, vmax) > based only on the visible portion of the figure. My use-case is a > pcolormesh(x, y, z) drawn over a Basemap instance. The coordinates x and y > cover the entire globe, but I'm only mapping the Arctic. What happens is > that the normalization is done over the entire z array, while only a subset > of z actually appears on the map. The colors appearing on the map thus > cover only a small fraction of the entire color range. > > From what I managed to understand, pcolormesh creates a collections of > patches colorcoded based on the array attribute. So my question is if there > is a builtin way to know which items of this collections are clipped so I > can mask this part of the array ? > > Thanks a lot, > > David > > As far as I know, no, there is not a built-in way of doing so. There is the clipping mechanism to prevent drawing things outside of bounding boxes (used for easy zooming and panning among other things), but as far as I know, that is done mostly in the backends, and it doesn't provide information on which elements in the array was chosen drawn. I would suggest making a feature request on the github page, and hopefully, someone will have an epiphany on how to implement such a feature (maybe with the scalar mappable objects?). Cheers! Ben Root |
From: Benjamin R. <ben...@ou...> - 2012-12-19 15:57:21
|
On Tue, Dec 18, 2012 at 2:05 PM, Darren Dale <dsd...@gm...> wrote: > On Mon, Dec 10, 2012 at 3:45 AM, Phil Elson <pel...@gm...> wrote: > > Thanks for bringing this up, it is certainly valuable to highlight this > on > > the mailinglist. As you say, the change is hard to spot and, I agree, > makes > > library code supporting v1.1.1 and v1.2 harder than one would like. > > Typically, anything which is going to break core APIs (even slightly) > should > > be documented under the "API Changes" page here > > http://matplotlib.org/api/api_changes.html#changes-in-1-2-x > > I suggest that an API change should have triggered a major version > bump to mpl-2.0.0. It seems a well-established expectation for a > major.minor.bugfix versioning scheme that bugfix releases will not > introduce new features, and minor releases will not introduce API > changes. > > Darren > > Agreed. I think what happened here was short-sightedness (somewhat on my part since I was involved in that PR). I didn't realize this sort of situation when I reviewed it. This originally looked more like an enhancement that a more fundamental change. My apologies. Ben Root |
From: Darren D. <dsd...@gm...> - 2012-12-18 19:05:09
|
On Mon, Dec 10, 2012 at 3:45 AM, Phil Elson <pel...@gm...> wrote: > Thanks for bringing this up, it is certainly valuable to highlight this on > the mailinglist. As you say, the change is hard to spot and, I agree, makes > library code supporting v1.1.1 and v1.2 harder than one would like. > Typically, anything which is going to break core APIs (even slightly) should > be documented under the "API Changes" page here > http://matplotlib.org/api/api_changes.html#changes-in-1-2-x I suggest that an API change should have triggered a major version bump to mpl-2.0.0. It seems a well-established expectation for a major.minor.bugfix versioning scheme that bugfix releases will not introduce new features, and minor releases will not introduce API changes. Darren |