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


Showing 3 results of 3

From: Jeff W. <jef...@no...> - 2012年05月18日 20:46:29
Available for download at 
https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.3/
Thanks to Christoph Gohlke for making windows installers.
Highlights:
 - new 'round' keyword for polar-centric plots (see polarmaps.py example).
 - the coastline filling bug has now finally been (mostly) fixed 
(there are still probably
 some corner cases that trigger it).
 - coastline and political boundary databases updated.
 - examples now work in python 3
 - added hexbin and streamplot methods.
 - added kav7 (Kavrayskiy VII) and eck4 (Eckert IV) projections.
 - UTM zones can now be plotted (see utmtest.py example).
 - many bug fixes.
full Changelog:
version 1.0.3 (git tag v1.0.3rel)
--------------------------------
* fix some more python 3 compatibility issues (all examples now
 work with python 3.2).
* added alpha keyword to fillcontinents (to set transparency).
* update geos from 3.3.1 to 3.3.3.
* upgrade proj4 source to version 4.8.0, pyproj to version 1.9.2.
* add k_0 keyword for projection = 'tmerc' so UTM zones can be
 created. Also can be used with 'lcc','omerc' and 'stere'.
 Added "utmtest.py" example.
* add streamplot method, along with streamplot_demo.py example.
* add boundarylats, boundarylons Basemap attributes (arrays
 describing map boundaries - useful for illustrating map projection
 region on another map). Example illustrating usage
 (make_inset.py) added.
* update coastlines, rivers, political boundaries to GSHHS
 2.2.0/GMT 4.5.7. The fillcontinents bug (filling the outside
 instead of the inside of a coastline polygon) is now much
 harder to trigger.
* add 'round' keyword keyword to Basemap.__init__ for pole-centered
 projections to make them round (clipped at boundinglat) instead
 of square.
* added hexbin method, along with hexbin_demo.py example.
* drawmapboundary now uses axes bgcolor as default fill_color. If
 no color fill wanted, set fill_color='none' (a string).
* clip coastlines for nplaea,npaeqd,splaea,spaeqd in stereographic
 coordinates to avoid S. America disappearing in some south polar
 plots.
* fix broken daynight terminator function.
* added kav7 (Kavrayskiy VII) and eck4 (Eckert IV) projections
 (https://github.com/matplotlib/basemap/issues/9).
* update pyproj source from pyproj.googlecode.com. Includes
 new more robust and accurate pure python code for geodesic computations
 from geographiclib.
* bug fixes for celestial projections, and non-standard sphere
 radii (https://github.com/matplotlib/basemap/pull/6).
* fix bug in drawparallels that results in 'KeyError' when drawing
 parallels very close together (0.1 degrees).
* fix constant in Robinson projection (update PJ_robin.c
 from proj4 svn).
* fix typo in setup.py (replace "!= ['sdist','clean']" with
 "not in ['sdist','clean']").
* make sure drawmeridians can handle wrap-around (so that
 if projection is defined in -180 to 0 and user asks for
 meridians from 180 to 360 to be drawn, it should work).
 Only affects projections 'mill','gall','merc' and 'cyl'.
Regards,
Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Sebastian <se...@gm...> - 2012年05月18日 20:12:12
Any hints on how to visualize the density difference between two hexbin
plot, each with x-y (2D) data?
Each set has roughly 300,000 points.
The range in x and y values for each data set are roughly similar but with
slightly different density:
range x,x1: -1.222 to 3.656
range y,y1: 13.191, 18.150
So the steps:
(1) Produce the two hexbin maps:
fig1=hexbin(c_b204_jmk,c_b204_k,C = None, gridsize = 100, bins = None,
xscale = 'linear', yscale = 'linear', cmap=None, norm=None, vmin=None,
vmax=None, alpha=None, linewidths=None, edgecolors='none',reduce_C_function
= np.mean, mincnt=None, marginals=False)
fig2=hexbin(c_b211_jmk,c_b211_k,C = None, gridsize = 100, bins = None,
xscale = 'linear', yscale = 'linear', cmap=None, norm=None, vmin=None,
vmax=None, alpha=None, linewidths=None, edgecolors='none',reduce_C_function
= np.mean, mincnt=None, marginals=False)
(2) Determine the difference in the hexbin counts, with
diff_hex=fig2.get_array()-fig1.get_array()
(3) BUT when i try to plot the diff hexbin map
fig3=hexbin(c_b211_jmk,c_b211_k,C = diff_hex, gridsize = 100, bins = None,
xscale = 'linear', yscale = 'linear', cmap=None, norm=None, vmin=None,
vmax=None, alpha=None, linewidths=None, edgecolors='none',reduce_C_function
= np.mean, mincnt=None, marginals=False)
I obviously get a:
IndexError: index out of bounds
Because:
len(c_b211_jmk) = len(c_b211_k) != len(diff_hex),
Since diff_hex are the binned counts.
(4) Any simple way to get around this, to plot the hexbin difference counts
on top of the the hexbin (c_b211_jmk,c_b211_k) distribution?
thanks in advance & with best regards,
- Sebastian
From: Michael D. <md...@st...> - 2012年05月18日 11:46:07
I think having only the one failure (and one from a test that is quite 
new) is pretty good.
I'm not sure why that test is failing -- is it possible it's testing 
with an earlier checkout using tests from a newer checkout. This would 
happen, for example, if running the tests from the matplotlib source 
directory.
Mike
On 05/15/2012 12:08 PM, Edward C. Jones wrote:
> I use up-to-date Debian testing (wheezy) with the amd64 architecture
> and Debian's python3.2. I install matplotlib from the tarball
> matplotlib-matplotlib-v1.1.0-684-ge87374e.tar.gz
> Before the current install, I had also on my system Debian's
> python-matplotlib and python-matplotlib-data packages. They contain
> some of the same
> files as the tarball (/etc/matplotlibrc). I have completely removed the two
> Debian packages. My Debian system includes the packages python3-tk, tck8.5,
> tcl8.5-dev, tk8.5, and tk-dev.
>
> I did a new matplotlib install, starting by unpacking the tarball.
>
> In /usr/local/lib/python3.2/dist-packages/matplotlib/tests/test_text.py
> in test_afm_kerning, I added before the assert:
> xxx = afm.string_width_height('VAVAVAVAVAVA')
> print(xxx)
>
> The results are:
>
> > python3.2
> Python 3.2.3rc2 (default, Mar 21 2012, 05:47:04)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib
> >>> matplotlib.test()
> ..K........./usr/lib/python3/dist-packages/nose/tools.py:82:
> ResourceWarning: unclosed file<_io.BufferedRandom name=3>
> pass
> ...../usr/lib/python3.2/subprocess.py:650: ResourceWarning: unclosed file
> <_io.FileIO name=6 mode='rb'>
> _cleanup()
> /usr/lib/python3.2/subprocess.py:650: ResourceWarning: unclosed file
> <_io.FileIO name=8 mode='rb'>
> _cleanup()
>
> Many "."s and "K"s are printed.
>
> ======================================================================
> FAIL: matplotlib.tests.test_text.test_afm_kerning
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
> self.test(*self.arg)
> File
> "/usr/local/lib/python3.2/dist-packages/matplotlib/tests/test_text.py", line
> 109, in test_afm_kerning
> assert afm.string_width_height('VAVAVAVAVAVA') == (7174.0, 718)
> AssertionError: AssertionError:
> -------------------->> begin captured stdout<< ---------------------
> (8004.0, 718)
>
> --------------------->> end captured stdout<< ----------------------
>
> ----------------------------------------------------------------------
> Ran 1091 tests in 312.866s
>
> FAILED (KNOWNFAIL=275, failures=1)
> /usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:937:
> /UserWarning: This call to matplotlib.use() has no effect
> because the the backend has already been chosen;
> matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
> or matplotlib.backends is imported for the first time.
>
> if warn: warnings.warn(_use_error_msg)
> False
> >>>
> =======
> Here is one of matplotlib's simple sample programs. It works.
>
> #! /usr/bin/env python3.2
>
> from pylab import *
>
> t = arange(0.0, 2.0, 0.01)
> s = sin(2*pi*t)
> plot(t, s, linewidth=1.0)
>
> xlabel('time (s)')
> ylabel('voltage (mV)')
> title('About as simple as it gets, folks')
> grid(True)
> show()
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Showing 3 results of 3

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





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

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

More information about our ad policies

Ad destination/click URL:

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