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



Showing 6 results of 6

From: Tennessee L. <tle...@gm...> - 2010年06月06日 23:40:13
Hi all,
I have what seems to be a small error trying to reference a function in the
compiled tk backend which doesn't exist in the shared object (See stack
trace below). I'm running on a 64-bit system.
Has anyone else had this issue? Google didn't reveal a lot to me (searching
for "undefined symbol: XCreateIC" exact phrase yielded 2 results, neither
very enlightening for me.
python -c `import matplotlib; print matplotlib.__version__`:
0.99.3
To repeat this error (for me), simply run
python -c 'import pylab'
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/pylab.py", line 1,
in <module>
 from matplotlib.pylab import *
 File
"/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pylab.py",
line 247, in <module>
 from matplotlib.pyplot import *
 File
"/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pyplot.py",
line 78, in <module>
 new_figure_manager, draw_if_interactive, show = pylab_setup()
 File
"/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/__init__.py",
line 25, in pylab_setup
 globals(),locals(),[backend_name])
 File
"/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
line 8, in <module>
 import tkagg # Paint image to Tk photo blitter extension
 File
"/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/tkagg.py",
line 1, in <module>
 import _tkagg
ImportError:
/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/_tkagg.so:
undefined symbol: XCreateIC
>>> import tkagg
Output from --verbose:
CONFIGDIR=/home/ho/nmc/tjl/.matplotlib
matplotlib data path
/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data
loaded rc file
/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.99.3
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/ho/nmc/tjl/.matplotlib/fontList.cache
-- 
--------------------------------------------------
Tennessee Leeuwenburg
http://myownhat.blogspot.com/
"Don't believe everything you think"
From: Eric F. <ef...@ha...> - 2010年06月06日 17:00:45
On 06/05/2010 04:41 PM, per freem wrote:
> Hi all,
>
> How can I plot a matrix of values as a heatmap where values are shown
> from green to red intensities, or blue to yellow intensities, like in
> the following figure?
>
> http://www.coriell.org/images/microarray.gif
>
> I want to have the option of doing this with either green-red maps or
> blue-yellow maps. Is the right function for this imshow, or pcolor?
pcolor is general but slow, and best suited for moderate numbers of 
points. pcolormesh is faster. imshow can be good if you have a uniform 
Cartesian grid. imshow(...., interpolation='nearest') is the closest 
analogy to pcolor and pcolormesh.
> Also, how can I get the scale bar to the left of it that shows the
> ranges of the intensities, and how can this scale be adjusted?
In the gallery, and in the corresponding examples subdirectory of the 
mpl distribution, search for "colorbar". Note that the color scale is 
not set via colorbar options, but via vmin and vmax kwargs in imshow 
etc., or via the pylab clim command, or via the set_clim method of the 
image object returned by imshow. In other words, the colorbar is used 
for showing a color scale used by another image-like plot element--it is 
not used for controlling that scale, or any other aspect of the image 
itself.
Eric
>
> Thanks very much.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Benjamin R. <ben...@ou...> - 2010年06月06日 16:41:10
I think what you are looking for is a way to specify the colormap of your
plot. While the documentation is a little sparse on this topic, there is
plenty of functionality in matplotlib regarding colormaps.
Here is a list of built-in colormaps:
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=colormap#matplotlib.pyplot.colormaps
Just about any matplotlib plotting function accepts a cmap keyword where you
can specify a colormap of your choice to override the default. You can even
create your own colormap if you can't find one to suit your needs.
I hope this is helpful.
Ben Root
On Sat, Jun 5, 2010 at 9:41 PM, per freem <per...@gm...> wrote:
> Hi all,
>
> How can I plot a matrix of values as a heatmap where values are shown
> from green to red intensities, or blue to yellow intensities, like in
> the following figure?
>
> http://www.coriell.org/images/microarray.gif
>
> I want to have the option of doing this with either green-red maps or
> blue-yellow maps. Is the right function for this imshow, or pcolor?
> Also, how can I get the scale bar to the left of it that shows the
> ranges of the intensities, and how can this scale be adjusted?
>
> Thanks very much.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Michiel de H. <mjl...@ya...> - 2010年06月06日 12:33:51
--- On Sun, 6/6/10, Brice Thurin <br...@4d...> wrote:
> I was wondering if someone could let know what is the
> status of the two backends and if the CocoaAgg backend is
> still supported as it does not appear in the list of backend
> in the Faq.
As far as I can tell it still works, but it doesn't seem to be up to date with the other backends.
> I saw in one of the post of Michiel de Hoon dating back
> 2008 that the MacOsX backend does not allow for integration
> of matplotlib within a cocoa application, I was wondering if
> it is still the case.
Maybe "does not allow" is too strong an expression. The MacOSX backend was not designed to be integrated within a cocoa application, but somebody sufficiently familiar with cocoa may be able to find a way to do so.
> Also, I tried to find some tutorial or example showing how
> to use the two backend but could not find one, maybe i
> overlooked something and would be grateful if someone could
> point it to me.
> 
What do you mean by how to use the backend? In principle, the MacOSX backend has the same functionality as the other GUI backends.
--Michiel.
 
From: Brice T. <br...@4d...> - 2010年06月06日 09:29:26
Good Morning,
I was wondering if someone could let know what is the status of the two backends and if the CocoaAgg backend is still supported as it does not appear in the list of backend in the Faq.
I saw in one of the post of Michiel de Hoon dating back 2008 that the MacOsX backend does not allow for integration of matplotlib within a cocoa application, I was wondering if it is still the case.
Also, I tried to find some tutorial or example showing how to use the two backend but could not find one, maybe i overlooked something and would be grateful if someone could point it to me.
I thank you in advance for any response and for this great package.
Regards,
Brice
From: per f. <per...@gm...> - 2010年06月06日 02:41:49
Hi all,
How can I plot a matrix of values as a heatmap where values are shown
from green to red intensities, or blue to yellow intensities, like in
the following figure?
http://www.coriell.org/images/microarray.gif
I want to have the option of doing this with either green-red maps or
blue-yellow maps. Is the right function for this imshow, or pcolor?
Also, how can I get the scale bar to the left of it that shows the
ranges of the intensities, and how can this scale be adjusted?
Thanks very much.

Showing 6 results of 6

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