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

Showing results of 407

<< < 1 2 3 4 .. 17 > >> (Page 2 of 17)
From: Michael D. <md...@st...> - 2010年04月29日 16:19:27
That is indeed a bug. This has now been fixed in SVN r8288. You can 
apply this patch to your local copy if you aren't running from SVN:
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=8288
Mike
On 04/28/2010 09:29 PM, Shrividya Ravi wrote:
> Hi all,
> I am having a problem having both a vspan and a legend in a figure 
> plotted on a semilog axis. A simple code that gives the following 
> error is shown in red:
>
> ERROR
>
> return self.frozen().__array__()
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1051, in __array__
> return self.frozen().__array__()
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1706, in frozen
> return blended_transform_factory(self._x.frozen(), self._y.frozen())
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1875, in frozen
> frozen = composite_transform_factory(self._a.frozen(), 
> self._b.frozen())
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1367, in frozen
> return Affine2D(self.get_matrix().copy())
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1451, in __init__
> Affine2DBase.__init__(self)
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 1304, in __init__
> Transform.__init__(self)
> File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 
> 87, in __init__
> self._parents = WeakKeyDictionary()
> File "/usr/lib/python2.6/weakref.py", line 232, in __init__
> def remove(k, selfref=ref(self)):
> RuntimeError: maximum recursion depth exceeded while calling a Python 
> object
>
> CODE
>
> x = numpy.arange(10,1e8,1000)
> y = numpy.arange(0,100,0.001)
>
> pylab.semilogx(x,y,'bo', label="Plot 1")
>
> pylab.legend(loc='best')
> pylab.axvspan(20,2e3,facecolor='k',alpha0.2)
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: James J. <jam...@gm...> - 2010年04月29日 14:11:49
Thank you Matthias :)
I think the problem here is that I never found an example showing 'twin'
scales, so I botched it to get the same result!
Cheers
James
From: James J. <jam...@gm...> - 2010年04月29日 13:03:05
Below is the working code to plot two different data series with different
units on the same graph, with the same x co-ordinates:
import pylab
# generate some data
x = range(0, 10)
y1 = [i*i for i in x]
y2 = [pylab.sin(0.4*i) for i in x]
# the data share x axis but have different y units
figure = pylab.gcf() # Get the current figure
orig_axis = pylab.gca() # Get the current axis
orig_axis.set_axis_off() # Turn it off to avoid complications
# use this for the overlapping axes
box = [0.14, 0.14, 0.72, 0.72]
# This uses the first set of data
axis1 = figure.add_axes(box, label = 'axis1')
axis1.set_title('TITLE')
axis1.plot(x, y1, '-^y')
axis1.set_ylabel('AXIS 1 LABEL')
axis1.set_xlabel('SHARED X LABEL')
axis1.spines['right'].set_visible(False)
# This uses the second set of data
# Note the same box region is used but the label must be different
axis2 = figure.add_axes(box, label = 'axis2')
axis2.plot(x, y2, '-sb')
axis2.yaxis.set_ticks_position('right')
axis2.yaxis.set_label_position('right')
axis2.set_ylabel('AXIS 2 LABEL')
axis2.spines['bottom'].set_visible(False)
axis2.spines['top'].set_visible(False)
axis2.spines['left'].set_visible(False)
# Write out to a file
pylab.savefig('out.png', dpi = 100, transparent = True)
Issues:
1) I can't use show() in this case because there is no Transparent
parameter.
2) It's still a botch.
3) I tried using alpha but it didn't seem to work at all?
Does anyone have a better implementation of this or better ideas?
Many thanks
James
From: Cédrick F. <ced...@fr...> - 2010年04月29日 06:28:27
Hello,
Is it possible to get colored bitmaps (instead of black ones) with the 
MathTextParser when it is used as shown in the mathtext_wx.py example ??
Thanks by advance for your help.
Best regards,
Cédrick FAURY
From: Carlos G. <car...@gm...> - 2010年04月29日 01:50:17
Here.
I found out that if I use
from pylab import *
as in the example, it works. But in my app, I'm using
import wx
import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
from matplotlib.font_manager import fontManager, FontProperties
from matplotlib.collections import LineCollection
could that be the culprit?
Carlos
script:
from pylab import *
import numpy as np
from matplotlib.collections import LineCollection
# We need to set the plot limits, the will not autoscale
ax = axes()
ax.set_xlim((-1,1))
ax.set_ylim((-1,1))
strike = [0,45,90,135]
dip = [10,20,30,40]
listXY = []
for i in range(len(strike)):
 beta = np.radians(strike[i])
 phi = np.radians(np.arange(-90,92,2))
 lamb = np.radians((90 - dip[i]))
 alpha = np.arccos(np.cos(phi) * np.cos(lamb))
 tq = np.sqrt(2) * np.sin(alpha/2)
 sint = np.sin(phi) / np.sin(alpha)
 temps = 1 - (sint * sint)
 x = tq * np.sqrt(temps)
 y = tq * sint
 x1 = np.cos(beta) * x + np.sin(beta) * y
 y1 = -np.sin(beta) * x + np.cos(beta) * y
 listXY.append(zip(x1,y1))
col = LineCollection(listXY, linewidths=1, colors='red', linestyles = 'dotted')
ax.add_collection(col, autolim=True)
show()
On Wed, Apr 28, 2010 at 09:46, Michael Droettboom <md...@st...> wrote:
> I can't reproduce the error on 0.99. Can you provide a complete script that
> reproduces the error?
>
> Mike
>
> Carlos Grohmann wrote:
>>
>> I've been trying to change the linestyles in a LineCollection, but
>> without any success...
>>
>> If I'm using:
>> col = collections.LineCollection(listXY, linewidths=circwdt,
>> colors=circcol, linestyle='solid', label=plabel)
>>
>> it works fine, but anything other than 'solid' gives me an error when
>> the code calls FigureCanvasAgg.draw(self) (it is a wxpython app):
>>
>> Traceback (most recent call last):
>> File "/home/guano/Arbeit/Stout/StereoPanel.py", line 552, in PlotChecked
>>  self.stereoCanvas.draw()
>> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_wxagg.py",
>> line 59, in draw
>>  FigureCanvasAgg.draw(self)
>> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py",
>> line 314, in draw
>>  self.figure.draw(self.renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
>> in draw_wrapper
>>  draw(artist, renderer, *kl)
>> File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 774, in
>> draw
>>  for a in self.axes: a.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
>> in draw_wrapper
>>  draw(artist, renderer, *kl)
>> File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 1721, in
>> draw
>>  a.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
>> in draw_wrapper
>>  draw(artist, renderer, *kl)
>> File "/usr/lib/pymodules/python2.6/matplotlib/legend.py", line 386, in
>> draw
>>  self._legend_box.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in
>> draw
>>  c.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in
>> draw
>>  c.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in
>> draw
>>  c.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in
>> draw
>>  c.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 488, in
>> draw
>>  c.draw(renderer)
>> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
>> in draw_wrapper
>>  draw(artist, renderer, *kl)
>> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 535, in
>> draw
>>  drawFunc(renderer, gc, tpath, affine.frozen())
>> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 874,
>> in _draw_lines
>>  self._lineFunc(renderer, gc, path, trans)
>> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 925,
>> in _draw_dashed
>>  renderer.draw_path(gc, path, trans)
>> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py",
>> line 98, in draw
>> _path
>>  self._renderer.draw_path(gc, path, transform, rgbFace)
>> TypeError: float() argument must be a string or a number
>>
>>
>>
>> >From the MPL docs, I see that i should be able to use other linestyles:
>>
>>
>> http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.LineCollection
>>
>> linestyles [ ‘solid’ | ‘dashed’ | ‘dashdot’ | ‘dotted’ ]
>> a string or dash tuple. The dash tuple is:
>>
>>
>>
>> I'm using MPL 0.99.0 in Ubuntu Karmic (9.10)
>>
>> tks
>>
>>
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
-- 
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
Linux User #89721
________________
Can’t stop the signal.
From: Shrividya R. <pen...@gm...> - 2010年04月29日 01:29:23
Hi all,
I am having a problem having both a vspan and a legend in a figure plotted
on a semilog axis. A simple code that gives the following error is shown in
red:
ERROR
 return self.frozen().__array__()
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1051,
in __array__
 return self.frozen().__array__()
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1706,
in frozen
 return blended_transform_factory(self._x.frozen(), self._y.frozen())
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1875,
in frozen
 frozen = composite_transform_factory(self._a.frozen(), self._b.frozen())
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1367,
in frozen
 return Affine2D(self.get_matrix().copy())
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1451,
in __init__
 Affine2DBase.__init__(self)
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 1304,
in __init__
 Transform.__init__(self)
 File "/usr/lib/pymodules/python2.6/matplotlib/transforms.py", line 87, in
__init__
 self._parents = WeakKeyDictionary()
 File "/usr/lib/python2.6/weakref.py", line 232, in __init__
 def remove(k, selfref=ref(self)):
RuntimeError: maximum recursion depth exceeded while calling a Python object
CODE
x = numpy.arange(10,1e8,1000)
y = numpy.arange(0,100,0.001)
pylab.semilogx(x,y,'bo', label="Plot 1")
pylab.legend(loc='best')
pylab.axvspan(20,2e3,facecolor='k',alpha0.2)
From: Geoff S. <geo...@gm...> - 2010年04月28日 23:39:24
Thanks Jervis,
I was able to get it to work!
Geoff
On 29 April 2010 09:09, Jervis Whitley <jer...@gm...> wrote:
>
>
> On Thu, Apr 29, 2010 at 9:00 AM, Geoff Sims <geo...@gm...>wrote:
>
>> Hi there,
>>
>> I've been spending hours trying to get the colormaps to work, and I am
>> still having no luck. All the examples I have found seem to use imshow()
>> rather than the figure() and plot(). This is a very simple thing I am
>> trying to do, a 2D x-y plot, with z values represented by a color.
>>
>> Basically, I have 3 numpy ndarrays:
>>
>> x - x values
>> y - y values
>> z - color values
>>
>> Obviously, it is trivial to plot the x and y values:
>>
>> *plt.plot(x, y, "bo")*
>>
>> But how to I use the z array to use the inbuilt colormap features?
>>
>> I've tried things like:
>>
>> *plt.plot(x, y, color=matplotlib.cm.jet(z), marker='o', markersize=6)*
>>
>> But it doesn't seem to work - how do I get this working?
>>
>> many thanks
>> Geoff Sims
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> I used something similar to the following recently that gave the scatter
> points a different colour depending on the z-axis values.
>
> chart = pylab.scatter(x, y, c=z, edgecolors='none')
> colourbar = pylab.colorbar()
>
> I'm sorry I can't give you better information about the colormap features
> though.
>
> Cheers,
>
> Jervis
>
>
From: Jervis W. <jer...@gm...> - 2010年04月28日 23:09:44
On Thu, Apr 29, 2010 at 9:00 AM, Geoff Sims <geo...@gm...> wrote:
> Hi there,
>
> I've been spending hours trying to get the colormaps to work, and I am
> still having no luck. All the examples I have found seem to use imshow()
> rather than the figure() and plot(). This is a very simple thing I am
> trying to do, a 2D x-y plot, with z values represented by a color.
>
> Basically, I have 3 numpy ndarrays:
>
> x - x values
> y - y values
> z - color values
>
> Obviously, it is trivial to plot the x and y values:
>
> *plt.plot(x, y, "bo")*
>
> But how to I use the z array to use the inbuilt colormap features?
>
> I've tried things like:
>
> *plt.plot(x, y, color=matplotlib.cm.jet(z), marker='o', markersize=6)*
>
> But it doesn't seem to work - how do I get this working?
>
> many thanks
> Geoff Sims
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
I used something similar to the following recently that gave the scatter
points a different colour depending on the z-axis values.
chart = pylab.scatter(x, y, c=z, edgecolors='none')
colourbar = pylab.colorbar()
I'm sorry I can't give you better information about the colormap features
though.
Cheers,
Jervis
From: Geoff S. <geo...@gm...> - 2010年04月28日 23:00:22
Hi there,
I've been spending hours trying to get the colormaps to work, and I am still
having no luck. All the examples I have found seem to use imshow() rather
than the figure() and plot(). This is a very simple thing I am trying to
do, a 2D x-y plot, with z values represented by a color.
Basically, I have 3 numpy ndarrays:
x - x values
y - y values
z - color values
Obviously, it is trivial to plot the x and y values:
 *plt.plot(x, y, "bo")*
But how to I use the z array to use the inbuilt colormap features?
I've tried things like:
 *plt.plot(x, y, color=matplotlib.cm.jet(z), marker='o', markersize=6)*
But it doesn't seem to work - how do I get this working?
many thanks
Geoff Sims
From: Eric F. <ef...@ha...> - 2010年04月28日 19:23:04
T J wrote:
> On Mon, Apr 26, 2010 at 12:28 PM, T J <tj...@gm...> wrote:
>> On Mon, Apr 26, 2010 at 12:01 PM, Jae-Joon Lee <lee...@gm...> wrote:
>>> Looking at the code, the "transparent" option set alphas of paches to
>>> 0, which I think is simply ignored in ps backend (which does not
>>> support alpha). I think it is better if the visibility of patches is
>>> set to False when the "transparent" option is set.
>>>
>> Attached. But I'm not doing anything fancy. I've also attached the
>> EPS along with a TEX document.
>>
> 
> 
> Has anyone been able to reproduce this? If not, it suggests a local
> problem for me. I am still interested in figuring it out, but I could
> use some pointers.
It's a bug, made more confusing by the trickery that is done when 
printing a figure. DPI, facecolor, and edgecolor that are set for a 
figure object are used only for screen display, and are overridden when 
the figure is saved. The overriding values can be supplied to the 
savefig call or via rcParams.
I think I have fixed the bug in svn, so that "transparent" will work as 
advertised. In addition, I made a change so that even with 
transparent=True, if you supply facecolor and/or edgecolor to the 
savefig call, those values should be used for the figure patch when the 
figure is saved. This might be useful if you want to keep the line 
around the figure, for example.
Eric
From: Michael D. <md...@st...> - 2010年04月28日 19:19:05
That file was renamed in r8202:
 
http://www.mail-archive.com/mat...@li.../msg04371.html
But that shouldn't impact building of the docs (it doesn't for me). 
Have you tried doing a "python make.py clean"?
Mike
Nils Wagner wrote:
> /home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py:300: 
> PlotWarning: Exception running plot 
> /home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/fig_subplot_demo.py
> Traceback (most recent call last):
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
> line 297, in render_figures
> run_code(plot_path, function_name, plot_code)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
> line 207, in run_code
> fd = open(fname)
> IOError: [Errno 2] No such file or directory: 
> 'fig_subplot_demo.py'
>
> warnings.warn(s, PlotWarning)
> Exception occurred while building, starting debugger:
> Traceback (most recent call last):
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/cmdline.py", 
> line 172, in main
> app.build(all_files, filenames)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/application.py", 
> line 130, in build
> self.builder.build_update()
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
> line 265, in build_update
> 'out of date' % len(to_build))
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
> line 285, in build
> purple, length):
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
> line 131, in status_iterator
> for item in iterable:
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/environment.py", 
> line 513, in update_generator
> self.read_doc(docname, app=app)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/environment.py", 
> line 604, in read_doc
> pub.publish()
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/core.py", 
> line 204, in publish
> self.settings)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/readers/__init__.py", 
> line 69, in read
> self.parse()
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/readers/__init__.py", 
> line 75, in parse
> self.parser.parse(self.input, document)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/__init__.py", 
> line 157, in parse
> self.statemachine.run(inputlines, document, 
> inliner=self.inliner)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 170, in run
> input_source=document['source'])
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
> line 232, in run
> context, state, transitions)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
> line 420, in check_line
> return method(match, context, next_state)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 2658, in underline
> self.section(title, source, style, lineno - 1, 
> messages)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 308, in section
> self.new_subsection(title, lineno, messages)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 376, in new_subsection
> node=section_node, match_titles=1)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 266, in nested_parse
> node=node, match_titles=match_titles)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 195, in run
> results = StateMachineWS.run(self, input_lines, 
> input_offset)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
> line 232, in run
> context, state, transitions)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
> line 420, in check_line
> return method(match, context, next_state)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 2239, in explicit_markup
> nodelist, blank_finish = 
> self.explicit_construct(match)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 2251, in explicit_construct
> return method(self, expmatch)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 1994, in directive
> directive_class, match, type_name, option_presets)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
> line 2043, in run_directive
> result = directive_instance.run()
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/__init__.py", 
> line 364, in run
> self.state, self.state_machine)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
> line 441, in plot_directive
> options, state_machine)
> File 
> "/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
> line 364, in _plot_directive
> shutil.copyfile(plot_path, os.path.join(destdir, 
> fname))
> File "/usr/lib64/python2.6/shutil.py", line 52, in 
> copyfile
> fsrc = open(src, 'rb')
> IOError: [Errno 2] No such file or directory: 
> u'/home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/fig_subplot_demo.py'
> 
>> /usr/lib64/python2.6/shutil.py(52)copyfile()
>> 
> -> fsrc = open(src, 'rb')
> (Pdb)
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Nils W. <nw...@ia...> - 2010年04月28日 18:48:42
/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py:300: 
PlotWarning: Exception running plot 
/home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/fig_subplot_demo.py
Traceback (most recent call last):
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
line 297, in render_figures
 run_code(plot_path, function_name, plot_code)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
line 207, in run_code
 fd = open(fname)
IOError: [Errno 2] No such file or directory: 
'fig_subplot_demo.py'
 warnings.warn(s, PlotWarning)
Exception occurred while building, starting debugger:
Traceback (most recent call last):
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/cmdline.py", 
line 172, in main
 app.build(all_files, filenames)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/application.py", 
line 130, in build
 self.builder.build_update()
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
line 265, in build_update
 'out of date' % len(to_build))
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
line 285, in build
 purple, length):
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/builders/__init__.py", 
line 131, in status_iterator
 for item in iterable:
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/environment.py", 
line 513, in update_generator
 self.read_doc(docname, app=app)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/Sphinx-1.0dev_20091204-py2.6.egg/sphinx/environment.py", 
line 604, in read_doc
 pub.publish()
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/core.py", 
line 204, in publish
 self.settings)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/readers/__init__.py", 
line 69, in read
 self.parse()
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/readers/__init__.py", 
line 75, in parse
 self.parser.parse(self.input, document)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/__init__.py", 
line 157, in parse
 self.statemachine.run(inputlines, document, 
inliner=self.inliner)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 170, in run
 input_source=document['source'])
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
line 232, in run
 context, state, transitions)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
line 420, in check_line
 return method(match, context, next_state)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 2658, in underline
 self.section(title, source, style, lineno - 1, 
messages)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 308, in section
 self.new_subsection(title, lineno, messages)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 376, in new_subsection
 node=section_node, match_titles=1)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 266, in nested_parse
 node=node, match_titles=match_titles)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 195, in run
 results = StateMachineWS.run(self, input_lines, 
input_offset)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
line 232, in run
 context, state, transitions)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/statemachine.py", 
line 420, in check_line
 return method(match, context, next_state)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 2239, in explicit_markup
 nodelist, blank_finish = 
self.explicit_construct(match)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 2251, in explicit_construct
 return method(self, expmatch)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 1994, in directive
 directive_class, match, type_name, option_presets)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/states.py", 
line 2043, in run_directive
 result = directive_instance.run()
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/docutils-0.5-py2.6.egg/docutils/parsers/rst/__init__.py", 
line 364, in run
 self.state, self.state_machine)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
line 441, in plot_directive
 options, state_machine)
 File 
"/home/nwagner/local/lib64/python2.6/site-packages/matplotlib/sphinxext/plot_directive.py", 
line 364, in _plot_directive
 shutil.copyfile(plot_path, os.path.join(destdir, 
fname))
 File "/usr/lib64/python2.6/shutil.py", line 52, in 
copyfile
 fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 
u'/home/nwagner/svn/matplotlib/doc/mpl_examples/pylab_examples/fig_subplot_demo.py'
> /usr/lib64/python2.6/shutil.py(52)copyfile()
-> fsrc = open(src, 'rb')
(Pdb)
From: T J <tj...@gm...> - 2010年04月28日 17:51:01
On Mon, Apr 26, 2010 at 12:28 PM, T J <tj...@gm...> wrote:
> On Mon, Apr 26, 2010 at 12:01 PM, Jae-Joon Lee <lee...@gm...> wrote:
>> Looking at the code, the "transparent" option set alphas of paches to
>> 0, which I think is simply ignored in ps backend (which does not
>> support alpha). I think it is better if the visibility of patches is
>> set to False when the "transparent" option is set.
>>
>
> Attached. But I'm not doing anything fancy. I've also attached the
> EPS along with a TEX document.
>
Has anyone been able to reproduce this? If not, it suggests a local
problem for me. I am still interested in figuring it out, but I could
use some pointers.
From: Amenity A. <am...@en...> - 2010年04月28日 16:29:00
Email not displaying correctly? View it in your browser.
Hello,
As summer approaches, plans for SciPy 2010 are coming into focus! Here 
are a few quick updates:
General conference talks announced
Thanks so much to everyone who submitted an abstract. We received a 
number of fantastic proposals and are indebted to Stéfan, Ondřej, and 
our awesome Program Committee for reviewing them so quickly. We're 
really excited to see these presentations, and definitely encourage 
you to take a look at what is lined up.
Keep in mind that this schedule is tentative, and that we will be 
announcing papers for our Biomedical and Parallel Processing & Cloud 
Computing tracks next week. Stay tuned...
Less than two weeks left for early registration
Yikes, time really does fly! Remember, early registration prices only 
apply if you register before May 10th.
Best,
The SciPy 2010 Team
@SciPy2010 on Twitter
You are receiving this email because you have registered for the SciPy 
2010 conference in Austin, TX.
Unsubscribe am...@en... from this list | Forward to a friend 
| Update your profile
Our mailing address is:
Enthought, Inc.
515 Congress Ave.
Austin, TX 78701
Add us to your address book
Copyright (C) 2010 Enthought, Inc. All rights reserved.
From: Jonathan S. <jjs...@vc...> - 2010年04月28日 14:37:11
Seems like this thread is a bit off topic now, but I'll chime in anyway. 
 When I co-write a paper with latex users, I use latexdiff:
http://www.ctan.org/tex-archive/support/latexdiff/
When I need reviews from non-latex users (e.g. my boss), I have them 
markup a PDF by hand or via pdf markup software (e.g. Adobe Acrobat).
Jonathan
Date: 2010年4月27日 22:23:55 -0400
From: william ratcliff
> I've started keeping papers under version control for latex. But, if
> I have collaborators who use word, then I just track changes.
>
> On Tue, Apr 27, 2010 at 9:13 PM, Ryan May <rm...@gm...> wrote:
>>
>>> Yeah, I check in my LaTeX file, bibliography, and any python
>>> scripts for figures into a subversion repo.
>>>
>>> Ryan
>>>
>>> On Tue, Apr 27, 2010 at 5:32 PM, G?khan
>>> Sever<gok...@gm...> wrote:
>>>>> We have old-stylers as well:)
>>>>> http://www.foxitsoftware.com/pdf/reader/has nice annotation
>>>>> tools for PDF reviewing, and its very fast and it works
>>> on
>>>>> Linux through CrossOver (probably would work via wine as
>>>>> well).
>>>>>
>>>>> What type of revision tracking do you use? Treat your
>>>>> documents like
>>> code?
>>>>> Google code has in-place commenting option that makes me
>>>>> think that
>>> document
>>>>> revisioning would be easier that way (one day when I start
>>>>> using Latex:)
>>> )
>>>>>
>>>>>
>>>>> On Tue, Apr 27, 2010 at 4:32 PM, Ryan May<rm...@gm...>
>>>>> wrote:
>>>>>>>
>>>>>>> My advisor just writes on a print out of the PDF. I'll
>>>>>>> make the changes in the revision tracked latex document.
>>>>>>>
>>>>>>> Ryan
>>>>>>>
>>>>>>> On Tue, Apr 27, 2010 at 4:18 PM, G?khan
>>>>>>> Sever<gok...@gm...> wrote:
>>>>>>>>> Hi Ryan, What is your typical reviewing process? Do
>>>>>>>>> you ask people to review on PDF outputs or via
>>>>>>>>> version controlled Latex document? OpenOffice also
>>>>>>>>> has a good review system where I can track my/others
>>>>>>>>> changes easily. On Tue, Apr 27, 2010 at 3:27 PM,
>>>>>>>>> Ryan May<rm...@gm...> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I know this started with non-Latex, but I've
>>>>>>>>>>> found that passing
>>> around
>>>>>>>>>>> latex-generated PDFs works well to get reviews
>>>>>>>>>>> from non-Latex people. But then again, the
>>>>>>>>>>> people I work with don't rely upon MS Office's
>>>>>>>>>>> electronic editing capabilities.
>>>>>>>>>>>
From: Maxime B. <mb...@es...> - 2010年04月28日 14:07:31
Attachments: example.png
Hi all,
I have created a figure with 4 subplots (2x2) and I want to separate 
them with a vertical and horizontal lines (see the green lines on my 
figure edited by Gimp) but I don't know if it's possible (I haven't find 
any example of that).
I am using Python 2.5.4 and matplotlib version 0.99.0
Thanks,
Maxime
From: Michael D. <md...@st...> - 2010年04月28日 12:50:34
Darren Dale wrote:
> On Wed, Apr 28, 2010 at 7:13 AM, Eric Emsellem <eem...@es...> wrote:
> 
>> Hi
>>
>> I just downloaded numpy 2.0 and there is a test in the setupext.py of matplotlib
>> which says:
>>
>> nn = numpy.__version__.split('.')
>> if not (int(nn[0]) >= 1 and int(nn[1]) >= 1):
>>
>> This clearly does NOT work for numpy 2.0.0 since nn[1] is 0....
>> Please change this.
>> 
>
> Wasn't this already changed in the trunk some time ago?
> 
Yes, matplotlib SVN already has this fix, but the latest released 
version (0.99.1.2) does not. Here is the patch:
 
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=8128
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2010年04月28日 12:46:23
I can't reproduce the error on 0.99. Can you provide a complete script 
that reproduces the error?
Mike
Carlos Grohmann wrote:
> I've been trying to change the linestyles in a LineCollection, but
> without any success...
>
> If I'm using:
> col = collections.LineCollection(listXY, linewidths=circwdt,
> colors=circcol, linestyle='solid', label=plabel)
>
> it works fine, but anything other than 'solid' gives me an error when
> the code calls FigureCanvasAgg.draw(self) (it is a wxpython app):
>
> Traceback (most recent call last):
> File "/home/guano/Arbeit/Stout/StereoPanel.py", line 552, in PlotChecked
> self.stereoCanvas.draw()
> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_wxagg.py",
> line 59, in draw
> FigureCanvasAgg.draw(self)
> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py",
> line 314, in draw
> self.figure.draw(self.renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
> in draw_wrapper
> draw(artist, renderer, *kl)
> File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 774, in draw
> for a in self.axes: a.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
> in draw_wrapper
> draw(artist, renderer, *kl)
> File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 1721, in draw
> a.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
> in draw_wrapper
> draw(artist, renderer, *kl)
> File "/usr/lib/pymodules/python2.6/matplotlib/legend.py", line 386, in draw
> self._legend_box.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in draw
> c.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in draw
> c.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in draw
> c.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 224, in draw
> c.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/offsetbox.py", line 488, in draw
> c.draw(renderer)
> File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 46,
> in draw_wrapper
> draw(artist, renderer, *kl)
> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 535, in draw
> drawFunc(renderer, gc, tpath, affine.frozen())
> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 874,
> in _draw_lines
> self._lineFunc(renderer, gc, path, trans)
> File "/usr/lib/pymodules/python2.6/matplotlib/lines.py", line 925,
> in _draw_dashed
> renderer.draw_path(gc, path, trans)
> File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py",
> line 98, in draw
> _path
> self._renderer.draw_path(gc, path, transform, rgbFace)
> TypeError: float() argument must be a string or a number
>
>
>
> >From the MPL docs, I see that i should be able to use other linestyles:
>
> http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.LineCollection
>
> linestyles [ ‘solid’ | ‘dashed’ | ‘dashdot’ | ‘dotted’ ]
> a string or dash tuple. The dash tuple is:
>
>
>
> I'm using MPL 0.99.0 in Ubuntu Karmic (9.10)
>
> tks
>
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: melloncx <xi...@cc...> - 2010年04月28日 12:34:04
Hello,
I am quite new in matplotlib, I am now facing a quite simple problem but
have no idea to solve. I just want set the y axis scale to value 100, which
means in the image, the y axis is always of scale 100, because the points in
my image indicates the percentage value(for example, 20%, 87%) which will
never exceed 100.
So, How to set the y axis scale to constant value 100 ?? It's really hard to
find a answer from internet.
-- 
View this message in context: http://old.nabble.com/How-to-set-constant-y-axis-scale-value-tp28387748p28387748.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Darren D. <dsd...@gm...> - 2010年04月28日 11:46:59
On Wed, Apr 28, 2010 at 7:13 AM, Eric Emsellem <eem...@es...> wrote:
> Hi
>
> I just downloaded numpy 2.0 and there is a test in the setupext.py of matplotlib
> which says:
>
>   nn = numpy.__version__.split('.')
>   if not (int(nn[0]) >= 1 and int(nn[1]) >= 1):
>
> This clearly does NOT work for numpy 2.0.0 since nn[1] is 0....
> Please change this.
Wasn't this already changed in the trunk some time ago?
From: Eric E. <eem...@es...> - 2010年04月28日 11:40:14
Hi
I just downloaded numpy 2.0 and there is a test in the setupext.py of matplotlib 
which says:
 nn = numpy.__version__.split('.')
 if not (int(nn[0]) >= 1 and int(nn[1]) >= 1):
This clearly does NOT work for numpy 2.0.0 since nn[1] is 0....
Please change this.
Eric
From: David E. <dav...@um...> - 2010年04月28日 07:48:05
Hi folks,
I'm trying to generate a single legend for a matrix of subplots. The
larger script uses the "tabular" module. I was not able to do a legend
that fit correctly, so I'm creating one in another figure. I'm plotting
again, but the point is just to create labels and line styles. I'm sure
there is a better way. I look up line style information from a "tabular"
table. Here is the problem: each row is read once and those that matche
the "if" statement are plotted once--but somehow generate TWO LABELS in
the legend. How is that possible?! I've attached a code snippet below. I
apologize for any sloppy coding--I'm new to python.
thank you,
-david
figure(2)
subplot(111)
for row in range(len(naics_styles)):
 if len(str(naics_styles[row]['Code'])) == 4: 
 llabel=str(naics_styles[row]['Code'])+'
'+naics_styles[row]['Name']
 lred=naics_styles[row]['Red']
 lgreen=naics_styles[row]['Green']
 lblue=naics_styles[row]['Blue']
 lalpha=naics_styles[row]['Alpha']
 ltype=naics_styles[row]['LineType']
 lwidth=naics_styles[row]['LineWidth']
 plot([(1,8)],ltype,color=(lred,lgreen,lblue), linewidth=lwidth*2,
alpha=lalpha*.75,label=llabel)
legend()
show()
close()
From: Eric F. <ef...@ha...> - 2010年04月28日 07:22:06
Attachments: cf_ext_cbar.py
Matthias Michler wrote:
[...]
> First of all I think my previously described error in the over-color is due to 
> a bug in the set up of the colors.ListedColormap during the initialisation of 
> ContourSet if 'self.colors' is not None.
> For the number of entries in the map 'N' the number of layers is 
> passed "N=len(self.layers)", which is not useful if self.extend is 'both'. 
> Let's say I want 3 regions and provide 3 colors. If extend is 'both' the 
> number of layers is the #{colored regions between min and max} + 2 = 5. For 
> N=5 in the initialisation of the ListedColormap the list of colors is 
> extended to have length 'N=5' (by repetition). Therefore an additional layer 
> (more precisely 2) occurs in the colormap and although the over_color is set 
> to something different the (repeted) first element of 'colors' is used to 
> color values above the highest level.
> 
> I propose the following case differentiation: 
> if self.extend == "both":
> N = len(self.layers) - 2
> elif self.extend in ('max', 'min'):
> N = len(self.layers) - 1
> else:
> N = len(self.layers)
> 
> Maybe N = len(self.levels) - 1 is always a good solution.
> 
> Is this a bug and does my proposal resolve it without destroying something 
> else?
> 
> 
Matthias,
I think I have fixed the problem. I also changed the second plot in 
contourf_demo to include the extended colorbar. Attached is a 
modification of one of your illustrative scripts with some unnecessary 
kwargs stripped out. In particular, when contourf makes a 
ListedColormap, you don't need or want to specify the norm--it uses the 
appropriate one, which is NoNorm. Also, you probably don't need to 
specify the view limits when making the subplot (contourf will autoscale 
with tight boundaries), and you don't need to pass the extend kwarg to 
colormap--it gets it from the ContourSet object.
Eric
From: william r. <wil...@gm...> - 2010年04月28日 02:24:04
I've started keeping papers under version control for latex. But, if I have
collaborators who use word, then I just track changes.
On Tue, Apr 27, 2010 at 9:13 PM, Ryan May <rm...@gm...> wrote:
> Yeah, I check in my LaTeX file, bibliography, and any python scripts
> for figures into a subversion repo.
>
> Ryan
>
> On Tue, Apr 27, 2010 at 5:32 PM, Gökhan Sever <gok...@gm...>
> wrote:
> > We have old-stylers as well :) http://www.foxitsoftware.com/pdf/reader/has
> > nice annotation tools for PDF reviewing, and its very fast and it works
> on
> > Linux through CrossOver (probably would work via wine as well).
> >
> > What type of revision tracking do you use? Treat your documents like
> code?
> > Google code has in-place commenting option that makes me think that
> document
> > revisioning would be easier that way (one day when I start using Latex :)
> )
> >
> >
> > On Tue, Apr 27, 2010 at 4:32 PM, Ryan May <rm...@gm...> wrote:
> >>
> >> My advisor just writes on a print out of the PDF. I'll make the
> >> changes in the revision tracked latex document.
> >>
> >> Ryan
> >>
> >> On Tue, Apr 27, 2010 at 4:18 PM, Gökhan Sever <gok...@gm...>
> >> wrote:
> >> > Hi Ryan,
> >> > What is your typical reviewing process? Do you ask people to review on
> >> > PDF
> >> > outputs or via version controlled Latex document?
> >> > OpenOffice also has a good review system where I can track my/others
> >> > changes
> >> > easily.
> >> > On Tue, Apr 27, 2010 at 3:27 PM, Ryan May <rm...@gm...> wrote:
> >> >>
> >> >> I know this started with non-Latex, but I've found that passing
> around
> >> >> latex-generated PDFs works well to get reviews from non-Latex people.
> >> >> But then again, the people I work with don't rely upon MS Office's
> >> >> electronic editing capabilities.
> >> >>
> >> >> Ryan
> >> >>
> >> >> On Tue, Apr 27, 2010 at 12:43 PM, Gökhan Sever <
> gok...@gm...>
> >> >> wrote:
> >> >> > No, it comes with problems --especially in equation transformation.
> >> >> >
> >> >> > I mostly work on Linux (Fedora 12). I get MS Office 2007 installed
> >> >> > through
> >> >> > CrossOver, but it has glitches and doesn't look very safe to use
> for
> >> >> > a
> >> >> > big
> >> >> > project.
> >> >> >
> >> >> > On Tue, Apr 27, 2010 at 12:17 PM, william ratcliff
> >> >> > <wil...@gm...> wrote:
> >> >> >>
> >> >> >> Have you had good luck keeping the formatting going between open
> >> >> >> office
> >> >> >> and MS word? What about equations?
> >> >> >>
> >> >> >> On Tue, Apr 27, 2010 at 12:42 PM, Gökhan Sever
> >> >> >> <gok...@gm...>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>>
> >> >> >>> On Tue, Apr 27, 2010 at 11:23 AM, Konstantin Klementiev
> >> >> >>> <kkl...@ce...> wrote:
> >> >> >>>>
> >> >> >>>> >I like to use png files at 300dpi. I'm stuck using MS Word 2007
> >> >> >>>> > at
> >> >> >>>> > work, and
> >> >> >>>> >that's what works best in my experience. If MS ever starts to
> >> >> >>>> > support
> >> >> >>>> > svg
> >> >> >>>> >files.
> >> >> >>>> Or matplotlib starts to support emf-files... ;)
> >> >> >>>>
> >> >> >>>> BTW, why the emf format is in the list of export formats whereas
> >> >> >>>> it
> >> >> >>>> is
> >> >> >>>> not
> >> >> >>>> actually supported?
> >> >> >>>> Its presence there gives hope that the matplotlib developers
> will
> >> >> >>>> finally want
> >> >> >>>> to implement it.
> >> >> >>>
> >> >> >>> EMF works if you install pyemf package. It seems good on screen
> >> >> >>> except
> >> >> >>> that it kills the text when I import emf image into Open Office
> >> >> >>> Writer,
> >> >> >>> worse than on EPS :)
> >> >> >>>
> >> >> >>>
> >> >> >>> --
> >> >> >>> Gökhan
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> ------------------------------------------------------------------------------
> >> >> >>>
> >> >> >>> _______________________________________________
> >> >> >>> Matplotlib-users mailing list
> >> >> >>> Mat...@li...
> >> >> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >> >>>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Gökhan
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> ------------------------------------------------------------------------------
> >> >> >
> >> >> > _______________________________________________
> >> >> > Matplotlib-users mailing list
> >> >> > Mat...@li...
> >> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Ryan May
> >> >> Graduate Research Assistant
> >> >> School of Meteorology
> >> >> University of Oklahoma
> >> >>
> >> >>
> >> >>
> >> >>
> ------------------------------------------------------------------------------
> >> >> _______________________________________________
> >> >> Matplotlib-users mailing list
> >> >> Mat...@li...
> >> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >
> >> >
> >> >
> >> > --
> >> > Gökhan
> >> >
> >>
> >>
> >>
> >> --
> >> Ryan May
> >> Graduate Research Assistant
> >> School of Meteorology
> >> University of Oklahoma
> >
> >
> >
> > --
> > Gökhan
> >
>
>
>
>
>
> --
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Ryan M. <rm...@gm...> - 2010年04月28日 01:13:35
Yeah, I check in my LaTeX file, bibliography, and any python scripts
for figures into a subversion repo.
Ryan
On Tue, Apr 27, 2010 at 5:32 PM, Gökhan Sever <gok...@gm...> wrote:
> We have old-stylers as well :) http://www.foxitsoftware.com/pdf/reader/ has
> nice annotation tools for PDF reviewing, and its very fast and it works on
> Linux through CrossOver (probably would work via wine as well).
>
> What type of revision tracking do you use? Treat your documents like code?
> Google code has in-place commenting option that makes me think that document
> revisioning would be easier that way (one day when I start using Latex :) )
>
>
> On Tue, Apr 27, 2010 at 4:32 PM, Ryan May <rm...@gm...> wrote:
>>
>> My advisor just writes on a print out of the PDF. I'll make the
>> changes in the revision tracked latex document.
>>
>> Ryan
>>
>> On Tue, Apr 27, 2010 at 4:18 PM, Gökhan Sever <gok...@gm...>
>> wrote:
>> > Hi Ryan,
>> > What is your typical reviewing process? Do you ask people to review on
>> > PDF
>> > outputs or via version controlled Latex document?
>> > OpenOffice also has a good review system where I can track my/others
>> > changes
>> > easily.
>> > On Tue, Apr 27, 2010 at 3:27 PM, Ryan May <rm...@gm...> wrote:
>> >>
>> >> I know this started with non-Latex, but I've found that passing around
>> >> latex-generated PDFs works well to get reviews from non-Latex people.
>> >> But then again, the people I work with don't rely upon MS Office's
>> >> electronic editing capabilities.
>> >>
>> >> Ryan
>> >>
>> >> On Tue, Apr 27, 2010 at 12:43 PM, Gökhan Sever <gok...@gm...>
>> >> wrote:
>> >> > No, it comes with problems --especially in equation transformation.
>> >> >
>> >> > I mostly work on Linux (Fedora 12). I get MS Office 2007 installed
>> >> > through
>> >> > CrossOver, but it has glitches and doesn't look very safe to use for
>> >> > a
>> >> > big
>> >> > project.
>> >> >
>> >> > On Tue, Apr 27, 2010 at 12:17 PM, william ratcliff
>> >> > <wil...@gm...> wrote:
>> >> >>
>> >> >> Have you had good luck keeping the formatting going between open
>> >> >> office
>> >> >> and MS word? What about equations?
>> >> >>
>> >> >> On Tue, Apr 27, 2010 at 12:42 PM, Gökhan Sever
>> >> >> <gok...@gm...>
>> >> >> wrote:
>> >> >>>
>> >> >>>
>> >> >>> On Tue, Apr 27, 2010 at 11:23 AM, Konstantin Klementiev
>> >> >>> <kkl...@ce...> wrote:
>> >> >>>>
>> >> >>>> >I like to use png files at 300dpi. I'm stuck using MS Word 2007
>> >> >>>> > at
>> >> >>>> > work, and
>> >> >>>> >that's what works best in my experience. If MS ever starts to
>> >> >>>> > support
>> >> >>>> > svg
>> >> >>>> >files.
>> >> >>>> Or matplotlib starts to support emf-files... ;)
>> >> >>>>
>> >> >>>> BTW, why the emf format is in the list of export formats whereas
>> >> >>>> it
>> >> >>>> is
>> >> >>>> not
>> >> >>>> actually supported?
>> >> >>>> Its presence there gives hope that the matplotlib developers will
>> >> >>>> finally want
>> >> >>>> to implement it.
>> >> >>>
>> >> >>> EMF works if you install pyemf package. It seems good on screen
>> >> >>> except
>> >> >>> that it kills the text when I import emf image into Open Office
>> >> >>> Writer,
>> >> >>> worse than on EPS :)
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Gökhan
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>>
>> >> >>> _______________________________________________
>> >> >>> Matplotlib-users mailing list
>> >> >>> Mat...@li...
>> >> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >> >>>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Gökhan
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > Matplotlib-users mailing list
>> >> > Mat...@li...
>> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Ryan May
>> >> Graduate Research Assistant
>> >> School of Meteorology
>> >> University of Oklahoma
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Matplotlib-users mailing list
>> >> Mat...@li...
>> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>> >
>> > --
>> > Gökhan
>> >
>>
>>
>>
>> --
>> Ryan May
>> Graduate Research Assistant
>> School of Meteorology
>> University of Oklahoma
>
>
>
> --
> Gökhan
>
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
25 messages has been excluded from this view by a project administrator.

Showing results of 407

<< < 1 2 3 4 .. 17 > >> (Page 2 of 17)
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 によって変換されたページ (->オリジナル) /