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

Showing 10 results of 10

From: Eric F. <ef...@ha...> - 2011年04月08日 23:51:32
On 04/08/2011 10:56 AM, Matt Funk wrote:
> Hi Paul,
>
> thanks for the response. Emmhh, i am not sure what's going on since what you
> are saying matches what's listed at
> http://matplotlib.sourceforge.net/users/customizing.html. The problem is that
> when i try it I get a key error, correspondingly, when i print rcParams i
> cannot find axes.color_cycle key:
It is quite new, so your mpl version is too old to have it.
Eric
>
> So printing rcParams gives:
> print mpl.rcParams
> {'figure.subplot.right': 0.90000000000000002, 'mathtext.cal': 'cursive',
> 'font.fantasy': ['Comic Sans MS', 'Chicago', 'Charcoal', 'ImpactWestern',
> 'fantasy'], 'xtick.minor.pad': 4, 'tk.pythoninspect': False, 'image.aspect':
> 'equal', 'font.cursive': ['Apple Chancery', 'Textile', 'Zapf Chancery',
> 'Sand', 'cursive'], 'figure.subplot.hspace': 0.20000000000000001,
> 'xtick.direction': 'out', 'axes.facecolor': 'w', 'mathtext.fontset': 'cm',
> 'ytick.direction': 'out', 'svg.image_inline': True, 'lines.markersize': 10.0,
> 'figure.dpi': 80, 'text.usetex': True, 'text.fontangle': 'normal',
> 'patch.edgecolor': 'k', 'legend.labelspacing': 0.5, 'ps.useafm': False,
> 'mathtext.bf': 'serif:bold', 'lines.solid_joinstyle': 'round',
> 'font.monospace': ['Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Andale
> Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal',
> 'monospace'], 'xtick.minor.size': 2, 'axes.formatter.limits': [-7, 7],
> 'figure.subplot.wspace': 0.20000000000000001, 'savefig.edgecolor': 'w',
> 'text.fontvariant': 'normal', 'image.cmap': 'jet', 'axes.edgecolor': 'k',
> 'tk.window_focus': False, 'image.origin': 'upper', 'text.fontsize': 'medium',
> 'font.serif': ['Bitstream Vera Serif', 'DejaVu Serif', 'New Century
> Schoolbook', 'Century Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman',
> 'Nimbus Roman No9 L', 'Times New Roman', 'Times', 'Palatino', 'Charter',
> 'serif'], 'savefig.facecolor': 'w', 'maskedarray': 'obsolete',
> 'ytick.minor.size': 2, 'numerix': 'obsolete', 'font.stretch': 'normal',
> 'text.dvipnghack': None, 'ytick.color': 'k', 'lines.linestyle': '-',
> 'xtick.color': 'k', 'xtick.major.pad': 4, 'text.fontweight': 'normal',
> 'patch.facecolor': 'b', 'figure.figsize': [8.0, 6.0], 'axes.linewidth': 1.0,
> 'legend.handletextpad': 0.80000000000000004, 'mathtext.fallback_to_cm': True,
> 'lines.linewidth': 1.0, 'savefig.dpi': 100, 'verbose.fileo': 'sys.stdout',
> 'svg.image_noscale': False, 'docstring.hardcopy': False, 'font.size': 24.0,
> 'ps.fonttype': 3, 'path.simplify': True, 'polaraxes.grid': True, 'toolbar':
> 'toolbar2', 'pdf.compression': 6, 'grid.linewidth': 0.5, 'figure.autolayout':
> False, 'figure.facecolor': '0.75', 'ps.usedistiller': False, 'legend.isaxes':
> True, 'figure.edgecolor': 'w', 'mathtext.tt': 'monospace',
> 'contour.negative_linestyle': 'dashed', 'image.interpolation': 'bilinear',
> 'lines.markeredgewidth': 1.5, 'axes3d.grid': True, 'lines.marker': 'None',
> 'legend.shadow': False, 'axes.titlesize': 24.0, 'backend': 'TkAgg',
> 'xtick.major.size': 4, 'legend.fontsize': 24.0, 'lines.solid_capstyle':
> 'projecting', 'mathtext.it': 'serif:italic', 'font.variant': 'normal',
> 'xtick.labelsize': 'medium', 'axes.unicode_minus': True, 'ps.distiller.res':
> 6000, 'pdf.fonttype': 3, 'patch.linewidth': 1.0, 'pdf.inheritcolor': False,
> 'lines.dash_capstyle': 'butt', 'lines.color': 'b', 'text.latex.preview':
> False, 'figure.subplot.top': 0.90000000000000002, 'pdf.use14corefonts': False,
> 'legend.markerscale': 1.0, 'patch.antialiased': True, 'font.style': 'normal',
> 'backend_fallback': True, 'legend.fancybox': True, 'grid.linestyle': ':',
> 'axes.labelcolor': 'k', 'text.color': 'k', 'mathtext.rm': 'serif',
> 'legend.loc': 'upper right', 'interactive': False, 'cairo.format': 'png',
> 'savefig.orientation': 'portrait', 'axes.axisbelow': False, 'ytick.major.size':
> 4, 'axes.grid': False, 'plugins.directory': '.matplotlib_plugins',
> 'grid.color': 'k', 'timezone': 'UTC', 'ytick.major.pad': 4,
> 'legend.borderpad': 0.40000000000000002, 'lines.dash_joinstyle': 'round',
> 'datapath': '/usr/share/matplotlib/mpl-data', 'lines.antialiased': True,
> 'text.latex.unicode': False, 'image.lut': 256, 'units': False,
> 'figure.subplot.bottom': 0.10000000000000001, 'text.latex.preamble': [''],
> 'legend.numpoints': 2, 'legend.handlelength': 2.0, 'font.sans-serif':
> ['Arial'], 'font.family': 'sans-serif', 'axes.labelsize': 24.0,
> 'ytick.minor.pad': 4, 'legend.borderaxespad': 0.5, 'mathtext.sf': 'sans\\-
> serif', 'axes.hold': True, 'verbose.level': 'silent', 'mathtext.default':
> 'it', 'figure.subplot.left': 0.125, 'legend.columnspacing': 2.0,
> 'text.fontstyle': 'normal', 'font.weight': 'normal', 'image.resample': False,
> 'agg.path.chunksize': 0, 'path.simplify_threshold': 0.1111111111111111,
> 'ytick.labelsize': 'medium', 'ps.papersize': 'letter', 'svg.embed_char_paths':
> True}
>
> (sorry for the long post).
> Anything obvious that i am doing wrong? I am using:
> Python 2.6.6
> mpl.__version__ = 0.99.3
>
> thanks
> matt
>
>
> On Thursday, April 07, 2011, Paul Ivanov wrote:
>> Matt Funk, on 2011年04月07日 16:52, wrote:
>>> Hi,
>>> i am farily new to matplotlib so my question might be fairly basic. I
>>> would like to be able to set certain default values at the beginning of
>>> my script. The way i did this with the other values is via changing the
>>> value stored in rcparams. So something like:
>>> import matplotlib.pyplot as mpl
>>> mpl.rcParams['lines.markersize'] = 20
>>>
>>> But i would like to set the markerfacecolor in such a way but it is not
>>> included in rcParams. I would really like to avoid setting it in each
>>> individual plot call.
>>>
>>> Is there a way to change the default at the start of the script?
>>
>> Hi Matt,
>>
>> this depends on how you're plotting.
>>
>> If you're just using plt.plot - it defers to cycling through the
>> rcParams['axes.color_cycle'] - so just set that to one value
>> before starting your plots..
>>
>> old_color_cycle = rcParams['axes.color_cycle']
>> rcParams['axes.color_cycle'] = 'purple' # cue Gogol Bordello
>> plt.figure()
>> ax = plt.subplot(111)
>>
>> ax.plot(range(10),'o', markersize=40)
>> ax.plot(np.random.rand(10),'o', markersize=40)
>> ax.plot(np.random.rand(10)*10,'o', markersize=40)
>>
>> # restore color_cycle just for this axes
>> ax._get_lines.set_color_cycle(old_color_cycle)
>> ax.plot(range(20,30), range(10),'o', markersize=40)
>> ax.plot(range(20,30), np.random.rand(10),'o', markersize=40)
>> ax.plot(range(20,30), np.random.rand(10)*10,'o', markersize=40)
>>
>> # restore old cycle for all new axes
>> rcParams['axes.color_cycle'] = old_color_cycle
>> --
>>
>> If, on the other hand, you're using scatter, there isn't
>> currently a way of doing the same, since scatter just uses 'b' as
>> the default parameter for color.
>>
>> This should probably be changed to act the same way plot does,
>> but that isn't currently implemented. This would be a good first
>> patch for a newcomer -- and would make matplotlib more consistent.
>>
>> best,
>
>
> ------------------------------------------------------------------------------
> 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: Matt F. <ma...@nm...> - 2011年04月08日 20:59:48
Hi Paul,
thanks for the response. Emmhh, i am not sure what's going on since what you 
are saying matches what's listed at 
http://matplotlib.sourceforge.net/users/customizing.html. The problem is that 
when i try it I get a key error, correspondingly, when i print rcParams i 
cannot find axes.color_cycle key:
So printing rcParams gives:
print mpl.rcParams
{'figure.subplot.right': 0.90000000000000002, 'mathtext.cal': 'cursive', 
'font.fantasy': ['Comic Sans MS', 'Chicago', 'Charcoal', 'ImpactWestern', 
'fantasy'], 'xtick.minor.pad': 4, 'tk.pythoninspect': False, 'image.aspect': 
'equal', 'font.cursive': ['Apple Chancery', 'Textile', 'Zapf Chancery', 
'Sand', 'cursive'], 'figure.subplot.hspace': 0.20000000000000001, 
'xtick.direction': 'out', 'axes.facecolor': 'w', 'mathtext.fontset': 'cm', 
'ytick.direction': 'out', 'svg.image_inline': True, 'lines.markersize': 10.0, 
'figure.dpi': 80, 'text.usetex': True, 'text.fontangle': 'normal', 
'patch.edgecolor': 'k', 'legend.labelspacing': 0.5, 'ps.useafm': False, 
'mathtext.bf': 'serif:bold', 'lines.solid_joinstyle': 'round', 
'font.monospace': ['Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Andale 
Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal', 
'monospace'], 'xtick.minor.size': 2, 'axes.formatter.limits': [-7, 7], 
'figure.subplot.wspace': 0.20000000000000001, 'savefig.edgecolor': 'w', 
'text.fontvariant': 'normal', 'image.cmap': 'jet', 'axes.edgecolor': 'k', 
'tk.window_focus': False, 'image.origin': 'upper', 'text.fontsize': 'medium', 
'font.serif': ['Bitstream Vera Serif', 'DejaVu Serif', 'New Century 
Schoolbook', 'Century Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 
'Nimbus Roman No9 L', 'Times New Roman', 'Times', 'Palatino', 'Charter', 
'serif'], 'savefig.facecolor': 'w', 'maskedarray': 'obsolete', 
'ytick.minor.size': 2, 'numerix': 'obsolete', 'font.stretch': 'normal', 
'text.dvipnghack': None, 'ytick.color': 'k', 'lines.linestyle': '-', 
'xtick.color': 'k', 'xtick.major.pad': 4, 'text.fontweight': 'normal', 
'patch.facecolor': 'b', 'figure.figsize': [8.0, 6.0], 'axes.linewidth': 1.0, 
'legend.handletextpad': 0.80000000000000004, 'mathtext.fallback_to_cm': True, 
'lines.linewidth': 1.0, 'savefig.dpi': 100, 'verbose.fileo': 'sys.stdout', 
'svg.image_noscale': False, 'docstring.hardcopy': False, 'font.size': 24.0, 
'ps.fonttype': 3, 'path.simplify': True, 'polaraxes.grid': True, 'toolbar': 
'toolbar2', 'pdf.compression': 6, 'grid.linewidth': 0.5, 'figure.autolayout': 
False, 'figure.facecolor': '0.75', 'ps.usedistiller': False, 'legend.isaxes': 
True, 'figure.edgecolor': 'w', 'mathtext.tt': 'monospace', 
'contour.negative_linestyle': 'dashed', 'image.interpolation': 'bilinear', 
'lines.markeredgewidth': 1.5, 'axes3d.grid': True, 'lines.marker': 'None', 
'legend.shadow': False, 'axes.titlesize': 24.0, 'backend': 'TkAgg', 
'xtick.major.size': 4, 'legend.fontsize': 24.0, 'lines.solid_capstyle': 
'projecting', 'mathtext.it': 'serif:italic', 'font.variant': 'normal', 
'xtick.labelsize': 'medium', 'axes.unicode_minus': True, 'ps.distiller.res': 
6000, 'pdf.fonttype': 3, 'patch.linewidth': 1.0, 'pdf.inheritcolor': False, 
'lines.dash_capstyle': 'butt', 'lines.color': 'b', 'text.latex.preview': 
False, 'figure.subplot.top': 0.90000000000000002, 'pdf.use14corefonts': False, 
'legend.markerscale': 1.0, 'patch.antialiased': True, 'font.style': 'normal', 
'backend_fallback': True, 'legend.fancybox': True, 'grid.linestyle': ':', 
'axes.labelcolor': 'k', 'text.color': 'k', 'mathtext.rm': 'serif', 
'legend.loc': 'upper right', 'interactive': False, 'cairo.format': 'png', 
'savefig.orientation': 'portrait', 'axes.axisbelow': False, 'ytick.major.size': 
4, 'axes.grid': False, 'plugins.directory': '.matplotlib_plugins', 
'grid.color': 'k', 'timezone': 'UTC', 'ytick.major.pad': 4, 
'legend.borderpad': 0.40000000000000002, 'lines.dash_joinstyle': 'round', 
'datapath': '/usr/share/matplotlib/mpl-data', 'lines.antialiased': True, 
'text.latex.unicode': False, 'image.lut': 256, 'units': False, 
'figure.subplot.bottom': 0.10000000000000001, 'text.latex.preamble': [''], 
'legend.numpoints': 2, 'legend.handlelength': 2.0, 'font.sans-serif': 
['Arial'], 'font.family': 'sans-serif', 'axes.labelsize': 24.0, 
'ytick.minor.pad': 4, 'legend.borderaxespad': 0.5, 'mathtext.sf': 'sans\\-
serif', 'axes.hold': True, 'verbose.level': 'silent', 'mathtext.default': 
'it', 'figure.subplot.left': 0.125, 'legend.columnspacing': 2.0, 
'text.fontstyle': 'normal', 'font.weight': 'normal', 'image.resample': False, 
'agg.path.chunksize': 0, 'path.simplify_threshold': 0.1111111111111111, 
'ytick.labelsize': 'medium', 'ps.papersize': 'letter', 'svg.embed_char_paths': 
True}
(sorry for the long post).
Anything obvious that i am doing wrong? I am using:
Python 2.6.6
mpl.__version__ = 0.99.3
thanks
matt
On Thursday, April 07, 2011, Paul Ivanov wrote:
> Matt Funk, on 2011年04月07日 16:52, wrote:
> > Hi,
> > i am farily new to matplotlib so my question might be fairly basic. I
> > would like to be able to set certain default values at the beginning of
> > my script. The way i did this with the other values is via changing the
> > value stored in rcparams. So something like:
> > import matplotlib.pyplot as mpl
> > mpl.rcParams['lines.markersize'] = 20
> > 
> > But i would like to set the markerfacecolor in such a way but it is not
> > included in rcParams. I would really like to avoid setting it in each
> > individual plot call.
> > 
> > Is there a way to change the default at the start of the script?
> 
> Hi Matt,
> 
> this depends on how you're plotting.
> 
> If you're just using plt.plot - it defers to cycling through the
> rcParams['axes.color_cycle'] - so just set that to one value
> before starting your plots..
> 
> old_color_cycle = rcParams['axes.color_cycle']
> rcParams['axes.color_cycle'] = 'purple' # cue Gogol Bordello
> plt.figure()
> ax = plt.subplot(111)
> 
> ax.plot(range(10),'o', markersize=40)
> ax.plot(np.random.rand(10),'o', markersize=40)
> ax.plot(np.random.rand(10)*10,'o', markersize=40)
> 
> # restore color_cycle just for this axes
> ax._get_lines.set_color_cycle(old_color_cycle)
> ax.plot(range(20,30), range(10),'o', markersize=40)
> ax.plot(range(20,30), np.random.rand(10),'o', markersize=40)
> ax.plot(range(20,30), np.random.rand(10)*10,'o', markersize=40)
> 
> # restore old cycle for all new axes
> rcParams['axes.color_cycle'] = old_color_cycle
> --
> 
> If, on the other hand, you're using scatter, there isn't
> currently a way of doing the same, since scatter just uses 'b' as
> the default parameter for color.
> 
> This should probably be changed to act the same way plot does,
> but that isn't currently implemented. This would be a good first
> patch for a newcomer -- and would make matplotlib more consistent.
> 
> best,
From: Valentine S. <val...@nx...> - 2011年04月08日 15:44:18
Hello, in the plot commands you can control what covers what by using
the zorder parameter. Here's a demo:
http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html
So, in your case you could change the plotting commands to
p1.plot(x,y1,'r',linewidth=5,zorder=1)
p1.fill_between(x,0,y2,color='k',alpha='0.7',zorder=2)
to get the fill to cover the line plot.
On Wed, Mar 30, 2011 at 3:16 AM, Terry Lang <te...@le...> wrote:
> Hey Matplotlib Community,
>
>     I am trying to create a standard line plot and then overlay a
> fill_between plot that would partly grey out the line plot. The code
> snippet I am interested in is:
>
> import matplotlib.pyplot as plot
> fig = plot.figure()
> p1 = fig.add_subplot(111)
> p1.plot(x,y1,'r',linewidth=5)
> p1.fill_between(x,0,y2,color='k',alpha='0.7')
>
> However, the fill_between plot is not actually covering the line plot.
> Is there another keyword I should be using?
>
> Thanks!
> Terry
>
> --
> P. Therese Lang
> Post Doc
> Alber Lab, UC Berkeley
>
>
> ------------------------------------------------------------------------------
> 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
>
-- 
Valentine Svensson
+46735011518
val...@nx...
From: Michael D. <md...@st...> - 2011年04月08日 13:36:33
Thanks. Fixed in git repository.
Mike
On 04/05/2011 08:28 AM, Piter Pasma wrote:
> (sorry if this is the wrong place, I'm just trying to help)
>
> In the documentation FAQ
> http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
> the link to "antigrain" is broken.
>
> Additionally, to whom it may concern, thanks for Matplotlib and Pylab,
> it's wonderful software and I use it nearly every day!!
>
> ------------------------------------------------------------------------------
> 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
> 
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Sebastian B. <seb...@si...> - 2011年04月08日 13:26:31
Hey,
thanks a bunch, that was the problem, build it a while back, really
should have seen that back then though ;).
Regrads,
Sebastian
On Fri, 2011年04月08日 at 08:14 -0400, Michael Droettboom wrote:
> Can you provide the output of a clean build?
> 
> Go to the source directory, remove the "build" dir, and run "python 
> setup.py install &> log" and send us the file "log". It's possible you 
> do not have the development files for gtk installed so the extension 
> modules didn't get built.
> 
> Mike
> 
> On 04/08/2011 08:49 AM, Sebastian Berg wrote:
> > Hey,
> >
> > I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped
> > with ubuntu. I have the problem that the GTK backend does not work
> > properly. Running similar to:
> > http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_gtk.html
> > throws the error: ImportError: No module named _backend_gdk
> > Is this a problem with the version or my installation and how would I
> > fix it (or do I need to downgrade again!?).
> >
> > Regards
> >
> > Sebastian Berg
> >
> >
> > ------------------------------------------------------------------------------
> > 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: Michael D. <md...@st...> - 2011年04月08日 13:14:59
Can you provide the output of a clean build?
Go to the source directory, remove the "build" dir, and run "python 
setup.py install &> log" and send us the file "log". It's possible you 
do not have the development files for gtk installed so the extension 
modules didn't get built.
Mike
On 04/08/2011 08:49 AM, Sebastian Berg wrote:
> Hey,
>
> I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped
> with ubuntu. I have the problem that the GTK backend does not work
> properly. Running similar to:
> http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_gtk.html
> throws the error: ImportError: No module named _backend_gdk
> Is this a problem with the version or my installation and how would I
> fix it (or do I need to downgrade again!?).
>
> Regards
>
> Sebastian Berg
>
>
> ------------------------------------------------------------------------------
> 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
> 
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Sebastian B. <seb...@si...> - 2011年04月08日 13:08:48
Sorry, I mean of course, that the example already fails for me with this
error...
On Fri, 2011年04月08日 at 14:49 +0200, Sebastian Berg wrote:
> Hey,
> 
> I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped
> with ubuntu. I have the problem that the GTK backend does not work
> properly. Running similar to:
> http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_gtk.html
> throws the error: ImportError: No module named _backend_gdk
> Is this a problem with the version or my installation and how would I
> fix it (or do I need to downgrade again!?).
> 
> Regards
> 
> Sebastian Berg
> 
> 
> ------------------------------------------------------------------------------
> 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: Sebastian B. <seb...@si...> - 2011年04月08日 12:50:10
Hey,
I recently installed matplotlib "1.1.0svn" upgrading from 0.99.x shipped
with ubuntu. I have the problem that the GTK backend does not work
properly. Running similar to:
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_gtk.html
throws the error: ImportError: No module named _backend_gdk
Is this a problem with the version or my installation and how would I
fix it (or do I need to downgrade again!?).
Regards
Sebastian Berg
From: Wang J. <da...@gm...> - 2011年04月08日 02:05:58
Hello,
 I want to plot a contourf (or imshow) map with some scatter symbol 
lay on it, and I
want them to use a same color set.
 like contour(x,y,z) or imshow(x,y,z) have a color set (colorbar)
 and scatter(x1,y1, s=z1,c=z1). in the scatter, the color of z1 would 
be the same with
the color of z if their value is the same. How could I do? thanks!
Best Regards,
Wang Jun
From: Paul I. <piv...@gm...> - 2011年04月08日 00:50:12
Matt Funk, on 2011年04月07日 16:52, wrote:
> Hi,
> i am farily new to matplotlib so my question might be fairly basic. I would 
> like to be able to set certain default values at the beginning of my script. 
> The way i did this with the other values is via changing the value stored in 
> rcparams. So something like:
> import matplotlib.pyplot as mpl
> mpl.rcParams['lines.markersize'] = 20
> 
> But i would like to set the markerfacecolor in such a way but it is not 
> included in rcParams. I would really like to avoid setting it in each 
> individual plot call. 
> 
> Is there a way to change the default at the start of the script?
Hi Matt,
this depends on how you're plotting. 
If you're just using plt.plot - it defers to cycling through the
rcParams['axes.color_cycle'] - so just set that to one value
before starting your plots..
old_color_cycle = rcParams['axes.color_cycle']
rcParams['axes.color_cycle'] = 'purple' # cue Gogol Bordello
plt.figure()
ax = plt.subplot(111)
ax.plot(range(10),'o', markersize=40)
ax.plot(np.random.rand(10),'o', markersize=40)
ax.plot(np.random.rand(10)*10,'o', markersize=40)
# restore color_cycle just for this axes
ax._get_lines.set_color_cycle(old_color_cycle)
ax.plot(range(20,30), range(10),'o', markersize=40)
ax.plot(range(20,30), np.random.rand(10),'o', markersize=40)
ax.plot(range(20,30), np.random.rand(10)*10,'o', markersize=40)
# restore old cycle for all new axes
rcParams['axes.color_cycle'] = old_color_cycle 
--
If, on the other hand, you're using scatter, there isn't
currently a way of doing the same, since scatter just uses 'b' as
the default parameter for color.
This should probably be changed to act the same way plot does,
but that isn't currently implemented. This would be a good first 
patch for a newcomer -- and would make matplotlib more consistent.
best,
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 

Showing 10 results of 10

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