SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S

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




Showing 5 results of 5

From: Tim M. <tim...@gm...> - 2013年04月30日 21:22:56
From: mgurling <mag...@gm...> - 2013年04月30日 20:24:25
I'm trying to make a legend handle that is half black and half hatched. I've
tried ...
...
rpos1 = ax.bar(ind, pos1, width, color='k', label='+1')
rneg1 = ax.bar(ind, neg1, width, color='w', hatch='///', label='-1')
rpos2 = ax.bar(ind, pos2, width, color='w', label='+2')
rneg2 = ax.bar(ind, neg2, width, color='w', label='-2')
handles, labels = ax.get_legend_handles_labels()
ax.legend( ((handles[0], handles[1]), handles[2]) , ('one', 'two') )
... 
The first handles--handles[0] and handles[1]--are combined but not side by
side: the hatched rectangle is placed over the top of the black rectangle so
the handle looks like it is just hatched. How might I create this mixed
handle?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/black-and-hatched-legend-handle-tp40979.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Nih H. <mm...@gm...> - 2013年04月30日 14:44:47
Hello everyone,
The problem I'm having can be seen by running the code at
http://pastebin.com/inNtYQkH (it is 90 lines long, couldn't make it shorter
in order to demonstrate almost everything I wanted, not including in the
email since the indentation might get broken).
I'm trying to replot a line every X milliseconds -- if there is new data --
together with the Cursor widget. So far I have no issues in plotting such
line, but the Cursor flickers when the plot is redraw. I guess my issue is
that Cursor uses blit, while I'm not using the blit technique for
replotting. Should I be doing this animation in a whole different method ?
Or is there a way to use Cursor in this setup without seeing it flickering ?
I didn't manage to use FuncAnimation because the data arrives in irregular
intervals (not in the code included, but in the real case), from different
sources from the network. Note that redrawing the line is not an issue
speed-wise, since the number of points is relatively low. It is just that
the Cursor flickers whenever the plot is redraw.
From: Scott S. <sco...@gm...> - 2013年04月30日 11:21:04
Forgot to send to the list <sigh>
---------- Forwarded message ----------
From: Scott Sinclair <sco...@gm...>
Date: 30 April 2013 13:20
Subject: Re: [Matplotlib-users] Basemap plotting data on projection
To: ChaoYue <cha...@gm...>
On 29 April 2013 23:32, ChaoYue <cha...@gm...> wrote:
> pdata = np.genfromtxt('pdata.txt')
> pdata = np.ma.masked_greater(pdata,1E20)
> lonm,latm=m.makegrid(pdata.shape[1],pdata.shape[0])
The problem is here ^^^
The data don't lie on an equally spaced grid in the Mercator
projection, so it doesn't make sense to ask for the lat/lon
coordinates of a grid that is equally spaced in this projection. You
need to determine the *actual* lat/lon coordinates before projecting
them onto the Mercator map and plotting...
Something like this should work (If you can assume that the data are
on an equally spaced grid in Equidistant Cyl projection having the
boundaries specified):
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# Set up the Equidistant Cyl projection to determine data locations.
pdata = np.genfromtxt('pdata.txt')
pdata = np.ma.masked_greater(pdata, 1E20)
ny, nx = pdata.shape
cyl_basemap = Basemap(projection='cyl', llcrnrlat=9, urcrnrlat=54.5,
 llcrnrlon=74, urcrnrlon=142, lat_ts=20, resolution='l')
lon, lat = cyl_basemap.makegrid(nx, ny)
# Set up the Mercator projection for plotting.
m = Basemap(projection='merc', llcrnrlat=9, urcrnrlat=54.5,\
 llcrnrlon=74, urcrnrlon=142, lat_ts=20, resolution='l')
m.drawcountries()
m.drawcoastlines()
m.drawmapboundary(fill_color='white')
m.drawrivers()
x, y = m(lon, np.flipud(lat))
cs = m.contourf(x, y, pdata)
m.colorbar(cs)
plt.show()
Cheers,
Scott
From: Thomas L. <thl...@ms...> - 2013年04月30日 08:46:04
Just to stress the following:
While the tutorial program is already online, the deadline for the call for abstracts
 just got extended to May 5, 2013. So there is still about a week to 
submit an interesting topic for a talk or a poster. You use Python for 
interesting scientific projects? Please consider presenting your work in
 Brussels.
Thomas
**********************
Dr Thomas Lecocq 
Geologist
Royal Observatory of Belgium
- Seismology -
**********************
From: thl...@ms...
To: ent...@en...; mat...@li...
Date: 2013年4月28日 10:53:57 +0000
Subject: [Enthought-Dev] EuroSciPy 2013
FYI
-------- Message original --------
 
 
 
 Sujet: 
 EuroSciPy 2013 - Deadline of the call for abstracts on
 28 april and many updates
 
 
 Date : 
 2013年4月22日 19:50:04 +0200
 
 
 De : 
 Organisation of EuroScipy
 <eur...@py...>
 
 
 Pour : 
 Organisation of EuroScipy
 <eur...@py...>
 
 
 
 
 
 Dear Scientist using Python,
EuroSciPy is the European Conference on Python in Science. The call for
abstracts for oral and poster presentations for EuroSciPy 2013 closes at the end
of this week, on 28 april. We welcome your applications via our website
https://www.euroscipy.org/. As a reminder, our keynote speakers are Cameron
Neylon (Public Library of Science) and Peter Wang (Continuum Analytics).
Find more below! Tutorials, sprints, focus issue of the journal "Computational
Science and Discovery" (IOP), proceedings and participant support!
We are glad to announce that the tutorial program is online at
https://www.euroscipy.org/schedule/tutorials/. As usual, our tutorial speakers
will cover all the basics in a beginner track and many powerful tools in the
advanced track.
Three sprints will be organized on the day following the conference: Python
visualization, Sage: Open Source Mathematics Software and NumPy and SciPy. More
information at https://www.euroscipy.org/program/sprints/.
Contributors to EuroSciPy 2013 will benefit from two communication
opportunities:
1. An invitation to submit full and original research papers to be reviewed for
 a focus issue (jointly with the SciPy 2013 conference) on Scientific
 Computing with Python in Computational Science & Discovery (CSD), IOP
 Publishing's electronic-only, multidisciplinary journal for the computational
 science community. Further details (guest editors, issue scope, submission
 details, etc) will be announced soon.
2. An invitation to submit their contribution as a paper for the EuroSciPy 2013
 proceedings that will be published. Further details will be announced soon.
Thanks to NumFOCUS and PySV, travel support will be provided to a small number
of students/participants based on their contribution to the conference and/or to
the scientific Python tools. More information will follow during the
registration period.
SciPythonic Regards,
The EuroSciPy 2013 Committee
**********************
Dr Thomas Lecocq 
Geologist
Royal Observatory of Belgium
- Seismology -
**********************
 		 	 		 
_______________________________________________
Enthought-Dev mailing list
Ent...@ma...
https://mail.enthought.com/mailman/listinfo/enthought-dev 		 	 		 

Showing 5 results of 5

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /