Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-31 Thread Johann Cohen-Tanugi
hmm, reading the initial email, this is not what I understood the idea 
would be. So let me the following : I have a dictionnary with the 7 days 
of week as keys (strings) and a value attached to it. I would like to 
plot the days of the week in x and the corresponding values in y. It 
amounts  to a histogram of 7 bins, and to correctly labeling the ticks 
with the keys instead of the integer 0...6. So it becomes kind of a bar 
chart. See p.40 of ftp://root.cern.ch/root/doc/3Histograms.pdf for an 
illustration.

I would imagine that requesting to plot a dictionary would naturally 
mean this kind of result, but I may overlook  possible ambiguities.
Anyway, that is what I understood the initial question was.

Johann
 

John Hunter wrote:
 On Wed, Jul 30, 2008 at 9:17 AM, stuartornum [EMAIL PROTECTED] wrote:
   
 Hi,

 Wondering if anyone has done something similar and could point me in the
 right direction.

 I have a dictionary like this:

 Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78',
 '00:04:00':'45',  '23:59:00':54}

 So as you can see there is 24 hours worth of minutes, with a value attached
 to each minute.

 Firstly, just to note the Dictionary Dict is not actually in order as
 above, it is all jumbled up.

 However is it possible to plot a dictionary using MatPlotLib, and using the
 time along the x-axis and values up the y?
 

 You will have to extract the x and y values, and convert them from
 strings to values matplotlib can understand (for example dates and
 floating point numbers).  Eg


 In [30]: d = {'00:00:00':'23', '00:01:00':'29', '00:02:00':'13',
 '00:03:00':'78',
 '00:04:00':'45', '23:59:00':54}

 In [32]: from dateutil.parser import parse

 In [33]: items = [(parse(date), float(val)) for date, val in d.items()]

 In [34]: items.sort()

 In [35]: items
 Out[35]:
 [(datetime.datetime(2008, 7, 30, 0, 0), 23.0),
  (datetime.datetime(2008, 7, 30, 0, 1), 29.0),
  (datetime.datetime(2008, 7, 30, 0, 2), 13.0),
  (datetime.datetime(2008, 7, 30, 0, 3), 78.0),
  (datetime.datetime(2008, 7, 30, 0, 4), 45.0),
  (datetime.datetime(2008, 7, 30, 23, 59), 54.0)]

 In [36]: dates, values = zip(*items)

 In [37]: plot(dates, values)
 Out[37]: [matplotlib.lines.Line2D object at 0xb45a5ec]

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-31 Thread stuartornum

Thank you John,

Just what I was looking for.

John Hunter-4 wrote:
 
 On Wed, Jul 30, 2008 at 9:17 AM, stuartornum [EMAIL PROTECTED] wrote:

 Hi,

 Wondering if anyone has done something similar and could point me in the
 right direction.

 I have a dictionary like this:

 Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78',
 '00:04:00':'45',  '23:59:00':54}

 So as you can see there is 24 hours worth of minutes, with a value
 attached
 to each minute.

 Firstly, just to note the Dictionary Dict is not actually in order as
 above, it is all jumbled up.

 However is it possible to plot a dictionary using MatPlotLib, and using
 the
 time along the x-axis and values up the y?
 
 You will have to extract the x and y values, and convert them from
 strings to values matplotlib can understand (for example dates and
 floating point numbers).  Eg
 
 
 In [30]: d = {'00:00:00':'23', '00:01:00':'29', '00:02:00':'13',
 '00:03:00':'78',
 '00:04:00':'45', '23:59:00':54}
 
 In [32]: from dateutil.parser import parse
 
 In [33]: items = [(parse(date), float(val)) for date, val in d.items()]
 
 In [34]: items.sort()
 
 In [35]: items
 Out[35]:
 [(datetime.datetime(2008, 7, 30, 0, 0), 23.0),
  (datetime.datetime(2008, 7, 30, 0, 1), 29.0),
  (datetime.datetime(2008, 7, 30, 0, 2), 13.0),
  (datetime.datetime(2008, 7, 30, 0, 3), 78.0),
  (datetime.datetime(2008, 7, 30, 0, 4), 45.0),
  (datetime.datetime(2008, 7, 30, 23, 59), 54.0)]
 
 In [36]: dates, values = zip(*items)
 
 In [37]: plot(dates, values)
 Out[37]: [matplotlib.lines.Line2D object at 0xb45a5ec]
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Plot-a-Dictionary%2C-time-and-value-tp18734294p18750474.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum

Hi again,

This is slightly similar to my previous post, however using lists, not
dictionaires.

So, I have a for loop that produces two list, as follows:

Hours = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']
and
Values = ['5.8', '5.76', '5.81', '5.72', '5.69', '5.88', '5.77', '5.64',
'6.78', '5.82', '6.74', '5.45', '5.61', '5.77', '10.02', '5.88', '5.77',
'5.64', '6.78', '5.82', '6.74', '5.45', '5.61']

So as you can see for each hour a value is given, now plotting this is
simple, its just plot(Hours, Values).

However, this is generated from a for loop and there could be anything from
1 to 1000 of the Hours and Values lists (The Hours list is always the
same), and I would like to plot all on the same axis.

Is there a way to build a plot string, and then plot the string once the
for loop has finished. i.e

PlotString = 
for item in AList:
  Hours = item[0]
  Values = item[1]
  PlotString += Hours, Values

plot(PlotString)


Now I know the above does not work, but it is purely to describe where I am
trying to go.

Thank you for all your help.
-- 
View this message in context: 
http://www.nabble.com/Plot-Multiple-List-by-concatenating-to-a-string--tp18751780p18751780.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] default mathtext font

2008-07-31 Thread Michael Droettboom
(Sorry for the delay -- just back from vacation)

It looks like the default Vera Sans font that matplotlib uses doesn't 
actually have the lunate epsilon character.  If you have it installed, 
you could have matplotlib use the DejaVu Sans font instead (which is 
essentially Vera Sans with a larger set of characters).

In your matplotlibrc, set font.sans to DejaVu Sans

Cheers,
Mike

Eli Brosh wrote:
 Thanks,
 This unicode thing works like magic.
 The only thing I am still unable to do is to insert the symbol 
 \epsilon (as distinct from \varepsilon).
 For some reason, the varepsilon ε is printed fine, but a blank square 
 is printed instead of the lunate epsilon ϵ.
 That is u' ε ' works,  while u' ϵ' does not.

 Any idea why this is happening ?

 Eli


 2008/7/22 Michael Droettboom [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 Yes, you would put it at the top of your .py file.

 In order to use Unicode in Python source code, you have to tell
 the Python interpreter what encoding the file is in.  That's done
 with a little magic comment at the top of the file.  The popular
 Unixy editors (emacs, vim etc.) also understand this comment and
 will save the file correctly.  Possibly other editors do as well.

 For more gory details that you probably need, see this:

 http://www.amk.ca/python/howto/unicode

 particularly the section Unicode Literals in Python Source Code.


 Cheers,
 Mike

 Eli Brosh wrote:

 Thanks,
 This seems to be a solution.
 I have an editor that supports unicode.
 But, can you please explain better how do I make the coding
 directive at the top of my source files ?
 Where do I write the command:
 # -*- coding: utf-8 -*-

 Is it inside the python script ?


 Sorry for the ignorance.
 Eli

 On Tue, Jul 22, 2008 at 10:14 AM, Michael Droettboom
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

As an alternative, you could just use Unicode to insert the
 Greek
characters:

rα-Fe (Someone 2003)

The default font used by matplotlib, Vera Sans, includes a full
set of Greek characters. This, of course, requires an
 editor that
supports Unicode and a coding directive at the top of your
 source
files, eg.:

# -*- coding: utf-8 -*-


Cheers,
Mike

Eli Brosh wrote:

Here is the use case I have in mind:
Plotting properties of various phases of iron, I need a
 legend
with greek letters and normal text:
\alpha-Fe, Someone (2003)

Now, I need the names e.g. someone to be upright.
Also, the relbar between \alpha and Fe is shorter with
 normal
text fonts than with italics.

I can solve the problem by using r'\rm{\alpha-Fe, Someone
(2003)}' but it would be easier if I could just change the
defaults.

Eli


On Mon, Jul 21, 2008 at 6:21 PM, Michael Droettboom
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

   Unfortunately there isn't. This is *theoretically*
 possible
with
   the STIX fonts, but that hasn't been implemented.
 However, with
   the Computer Modern fonts, many of the glyphs simply
 aren't
   present (upright Greek, for example) to make this
 happen.

   That said, I'm not sure this is necessarily a good idea.
Math has
   a set of commonly accepted conventions about when to
 use italic
   vs. upright that may only confuse the reader when
 not followed.
   Can you provide a use case?

   Cheers,
   Mike

   Eli Brosh wrote:

   Hello
   I there a way to change the default mathtext
 font from
cal to rm ?
   I would like to use the rm (serif) font without
 stating
   rm{...} or mathrm{...}.
   Is it possible to do using the matplotlibrc ?
   can you give me an example of how this is done ?

   Thanks
   Eli

 
 


 
 

Re: [Matplotlib-users] Navigation toolbar w/o subplot configuration button

2008-07-31 Thread Ben Axelrod
Yes.  I did this by deriving my toolbar class from the default 
NavigationToolbar2WxAgg.  Then deleting the buttons I did not want.  I had to 
delete by position, because I did not know their IDs.  (Does anyone know how to 
get the IDs of these standard buttons?)  Sample code below:

class VMToolbar(NavigationToolbar2WxAgg):

def __init__(self, plotCanvas):
NavigationToolbar2WxAgg.__init__(self, plotCanvas)

# delete unwanted tools
self.DeleteToolByPos(1) # Back Arrow
self.DeleteToolByPos(1) # Forward Arrow (note this was position 2)
self.DeleteToolByPos(3) # Divider (this was position 5)
self.DeleteToolByPos(3) # Configure subplots (this was position 6)
 ...
#end __init__
#end class


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eliben
Sent: Thursday, July 31, 2008 1:28 AM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Navigation toolbar w/o subplot configuration button


Hello,

I'm using mpl in a wxPython application to display plots dynamically. I want
to let the users interact with the plots (zoom, move), but I don't need the
subplot configuration button on the Navigation Toolbar. Can I instantiate
the toolbar without this button ?

TIA
Eli

--
View this message in context: 
http://www.nabble.com/Navigation-toolbar-w-o-subplot-configuration-button-tp18747977p18747977.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Navigation toolbar w/o subplot configuration button

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 8:18 AM, Ben Axelrod [EMAIL PROTECTED] wrote:
 Yes.  I did this by deriving my toolbar class from the default 
 NavigationToolbar2WxAgg.  Then deleting the buttons I did not want.  I had to 
 delete by position, because I did not know their IDs.  (Does anyone know how 
 to get the IDs of these standard buttons?)  Sample code below:

Alternatively, you can follow the lead of
examples/user_interfaces/embedding_in_wx4.py which uses a custom
toolbar.  You can cut the NavigationToolbar2 code from backend_wx.py
and remove the bits you don't want.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread Alan G Isaac
On Thu, 31 Jul 2008, stuartornum apparently wrote:
 Is there a way to build a plot string, and then plot the 
 string once the for loop has finished. 

What gain are you looking for over your lists,
which seems an efficient approach?

You realize plot accepts 2d objects, right?
http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-plot
So you can just make a list of lists for the dependent variables.

Cheers,
Alan Isaac




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Antonino Cucchiara
Hi,
I have some graphs with lower and upper limits. I found a couple of 
ideas online, but nothing like plotting symbols like arrows.
I am using the mathtex upperarrow symbol but it is quite unconfortable 
positioning the tex character in the righ X-Y position.
Do you know if there is an easier way to plot arrows as markers?

Thanks,
Nino

-- 

Antonino Cucchiara
PhD candidate
Department of AstronomyAstrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Manuel Metz
Antonino Cucchiara wrote:
 Hi,
 I have some graphs with lower and upper limits. I found a couple of 
 ideas online, but nothing like plotting symbols like arrows.
 I am using the mathtex upperarrow symbol but it is quite unconfortable 
 positioning the tex character in the righ X-Y position.
 Do you know if there is an easier way to plot arrows as markers?
 
 Thanks,
 Nino
 

Have a look at examples/pylab_examples/errorbar_limits.py. This shows 
how to plot upper/lower limits errorbars ... (if this is what you need)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plot() hangs up, how to rescue Python?

2008-07-31 Thread Michael Droettboom
Like John, I can't think of anything off hand to prevent this in the 
future.  However, if you're working with a script that causes this to 
happen again, please send us the script.  It may indicate an infinite 
loop or unbounded memory usage, and we'd like to track it down and fix it.

Also, as nice as interactive use is for experimentation, I usually build 
my important plots (where I'm concerned about losing data etc.) in a 
script file (.py), and then run that.  That way if things do get stuck, 
I can kill python and start over pretty easily.

Cheers,
Mike

Anand Patil wrote:
 Hi all,

 I'm using matplotlib with the TKAgg on a remote machine running 
 Ubuntu. Normally when I call 'plot' I see the plot in an X11 window, 
 but I called 'plot' yesterday and Python went unresponsive... it 
 doesn't listen to ctrl-C or anything, and it's been more than 24 hours.

 I would REALLY like to preserve the data Python has in memory. Is 
 there any way to kill the plot command and wake Python back up?

 Thanks,
 Anand Patil
 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] SVG rendering problems

2008-07-31 Thread Michael Droettboom
In general, SVG rendering support is quite variable between engines.  I 
do most of my testing on Inkscape and Firefox, since they feel the most 
correct and complete.

Can you send your SVG files (or the scripts that generate them) to this 
list so I can look at why they may be failing?  Screenshots or PNGs from 
ImageMagick and/or eog may also be useful, in case I can't reproduce the 
problems with the versions I have here.

Cheers,
Mike

Mathieu Leplatre wrote:
 Hi all,

 With both matplotlib versions (0.91 and 0.98), my SVGs are rendered
 correctly in Inkscape (and almost well in Firefox), but they are not
 rendered correctly when viewed with ImageMagick or Eye-of-Gnome.

 I did screenshots here, showing this curve cropping issue :
 http://mathieu-leplatre.info/media/matplotlib-svg/

 I am running CentOS 5.2 with matplotlib compiled manually in both cases.
 Cairo 1.2.4, librsvg 2.16, inkscape 0.46

 Could it be related to matplotlib ? Or to operating system libraries ?

 Thank you all for your support.
 Mathieu.

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Multiple plots, interactivity, wx etc

2008-07-31 Thread signal seeker
Hi,

I have couple of applications in which I have to generate multiple plots
interactively using the wx backend and wanted to know the best
approach to take for this. I did search the list for previous
discussions on this subject, but the approach to take is still
unfortunately not 100% clear to me.

The first use case is that I want to be able to show plots as soon
as they are ready. The script sits in a loop pulling out data from
different sources, does some transformations and then plots it. Now I
understand the recommended way to call show() when all the plots are
ready. But since there are many many plots and it take some time to
generate one, I would like to show the plot window as soon as it is
ready and furthermore I want all the plot windows to be alive so that
I can go back and forth through them. I tried using pylab.ion(), but
then after the script exits, all the windows disappear along with it.

The other use case is more like ipython. I have a program to connect
to a database and the user interacts with it using queries. I would
like to add visualization support to it The user should be able to plot
the data as needed and keep all the plot windows alive.

How can I do this using mpl and wx backend? Do you recommend using
threading or forking plots as separate processes?

Thanks,
Suchindra
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Michael Droettboom
Can you provide a standalone script that reproduces this error?

Cheers,
Mike

Jonathan Hayward, http://JonathansCorner.com; wrote:
 If there are one or more narrow wedges on a pie graph, narrow enough 
 that the percentage values overlap and are hard to read, there seems 
 to be a knife-thin missing wedge from the pie, including a break in 
 the circumference.

 Is this configurable, even if it means that the border completely 
 covers the colored interior of ultra-thin wedges?

 -- 
 -- Jonathan Hayward, [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]

 ** To see an award-winning website with stories, essays, artwork,
 ** games, and a four-dimensional maze, why not visit my home page?
 ** All of this is waiting for you at http://JonathansCorner.com

 ++ Would you like to curl up with one of my hardcover books?
 ++ You can now get my books from http://CJSHayward.com
 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum

Hi Alan,

Thanks for the reply.

I have literally in the past few days started using matplotlib, and python
for about 3 weeks prior.

So I am not at all up-to-date with all its functionality.

In regards to 2D objects, I have no idea.

Thanks again



Alan G Isaac wrote:
 
 On Thu, 31 Jul 2008, stuartornum apparently wrote:
 Is there a way to build a plot string, and then plot the 
 string once the for loop has finished. 
 
 What gain are you looking for over your lists,
 which seems an efficient approach?
 
 You realize plot accepts 2d objects, right?
 http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-plot
 So you can just make a list of lists for the dependent variables.
 
 Cheers,
 Alan Isaac
 
 
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Plot-Multiple-List-by-concatenating-to-a-string--tp18751780p18757080.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Jae-Joon Lee
If you're like me and what you want is just an arrow mark with its
head at (x,y), you may use scatter() with custom verts.

arrowup_verts = [[0.,0.], [-1., -1], [0.,0.], [0.,-2.],[0.,0.], [1, -1]]
arrowdown_verts = [[0.,0.], [-1., 1], [0.,0.], [0.,2.],[0.,0.], [1, 1]]

scatter([1.],[1.], s=100, marker=None,
verts=arrowup_verts)

scatter([1],[1.1], s=100, marker=None,
verts=arrowdown_verts)

-JJ




On Thu, Jul 31, 2008 at 9:41 AM, Antonino Cucchiara
[EMAIL PROTECTED] wrote:
 Hi,
 I have some graphs with lower and upper limits. I found a couple of
 ideas online, but nothing like plotting symbols like arrows.
 I am using the mathtex upperarrow symbol but it is quite unconfortable
 positioning the tex character in the righ X-Y position.
 Do you know if there is an easier way to plot arrows as markers?

 Thanks,
 Nino

 --

 Antonino Cucchiara
 PhD candidate
 Department of AstronomyAstrophysics
 Penn State University
 website: www.astro.psu.edu/~cucchiara/


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] tool bar help / feature request

2008-07-31 Thread Ben Axelrod
I am using the wxAgg backend with the NavigationToolbar2WxAgg toolbar.  I would 
like to hook up a keyboard shortcut that will call the 'home' button on the 
toolbar.  The only way I know to do this is the call the wx event with the ID 
of the home button.  The problem is that this ID is not a member variable in 
the NavigationToolbar2Wx class.  And I don't know of any wx method to get a 
toolbar button ID based on position.

This is what line 1643 of backend_wx.py looks like:

_NTB2_HOME=wx.NewId()
self._NTB2_BACK=wx.NewId()
self._NTB2_FORWARD =wx.NewId()
self._NTB2_PAN =wx.NewId()
self._NTB2_ZOOM=wx.NewId()
_NTB2_SAVE= wx.NewId()
_NTB2_SUBPLOT=wx.NewId()

It would be great if _NTB2_HOME, _NTB2_SAVE, and _NTB2_SUBPLOT were also made 
to be member variables.  Or if someone knows a better way, please let me know.

Thanks,
-Ben
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Tue, Jul 29, 2008 at 1:12 PM, John Hunter [EMAIL PROTECTED] wrote:
 We are in the final stages of preparing a new matplotlib release, and
 a lot of work has gone into it.  If you would like to test the release
 and see if it is working for you, that would be a big help

  http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc2.tar.gz

 Unfortunately, we do not have binary builds available at this time.

 Sandro, I saw that Georg released the 0.4.2 sphinx bugfix release, so
 as soon as Mikhail gets that into debian you can test this release
 candidate.

Sandro, just a reminder, we are still holding on your testing of the
new release candidate with the 0.4.2 sphinx bugfix.  The current
release candidate is

http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc3.tar.gz

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John,

On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote:

 Sandro, just a reminder, we are still holding on your testing of the
 new release candidate with the 0.4.2 sphinx bugfix.  The current
 release candidate is

 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc3.tar.gz

Yeah, sorry, I got some RealLife stuff going on, now done. I'll do it
this night, since I'm just seeing Mikhail is updating sphinx to 0.4.2
in our svn repo.

Thanks,
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Mikhail Gusarov
Twas brillig at 18:35:10 31.07.2008 UTC+02 when [EMAIL PROTECTED] did gyre and 
gimble:

 ST I'm just seeing Mikhail is updating sphinx to 0.4.2 in our svn
 ST repo.

Yes, and just asked Piotr to sponsor it.

-- 


pgp8CR0rUcLep.pgp
Description: PGP signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread Alan G Isaac
On Thu, 31 Jul 2008, stuartornum apparently wrote:
 In regards to 2D objects, I have no idea. 

E.g., a list of lists.

list1 = [0,1,2]
list2 = [3,4,5]
listoflists = [ list1, list2 ]

So you can put all your independent variables into a list
of lists, and plot them at one go against your list of times.
(Assuming common lengths.)

hth,
Alan Isaac




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ColorBar with axes

2008-07-31 Thread Eric Firing
[EMAIL PROTECTED] wrote:
 Hello,
 
 I would like to show a colorbar for my plot (see attachment) but I can't
 figure out how it works.
 In the examples on the website I only found the call to pylab.colorbar(),
 which doesn't work with my subplots. My code is as follows (with the bar
 graph-part snipped, for brevity). I also tried the ColorBar class and
 assigning cmap=cm.jet but it didn't work. Could anybody give me a hint
 please? I searched the tutorial, cookbook, api reference and google, but I
 can't really find anything.
 
 Thanks,
 Felix
 
 fig = p.figure()
 fig.text(0.5, 0.94, main_title, fontsize=x-large, ha=center)
 
 (...bar graph part snipped...)
 
 ax = fig.add_subplot(222)
 ax.set_title('Euclidean Distance')
 matrix = n.zeros([numof_dicts, numof_dicts])
 for i1, d1 in enumerate(dictionaries):
 for i2, d2 in enumerate(dictionaries):
 for k in d1.keys():
 if d2.has_key(k):
prob1 = (d1[k] / vectorlengths[i1])
prob2 = (d2[k] / vectorlengths[i2])
matrix[i1, i2] += prob1 * prob2
 ax.imshow(matrix, interpolation=nearest, cmap=p.cm.jet)

im = ax.imshow(matrix, interpolation=nearest, cmap=p.cm.jet)
p.colorbar(im, ax=ax)

Try the above, possibly adding a shrink kwarg; if you don't like the 
axes splitting that colorbar does by default, then you can make an axes 
to taste, call it cax, and instead of specifying the image axes as 
above, use p.colorbar(im, cax=cax).

Eric

 if documentnames != None:
 ax.set_yticklabels(documentnames, va=center, fontsize='x-small')
 ax.set_yticks(range(numof_dicts))
 #p.colorbar()
 
 ax = fig.add_subplot(224)
 ax.set_title('Kullback Leibler Distance')
 ax.imshow(matrix, interpolation=nearest)
 
 if documentnames != None:
 ax.set_yticklabels(documentnames, va=center, fontsize='x-small')
 ax.set_yticks(range(numof_dicts))
 ax.set_xticklabels(documentnames, rotation=320, va=top, ha=left,
 fontsize='xx-small')
 ax.set_xticks(range(numof_dicts))
 
 fig.subplots_adjust(left=0.10, right=0.90, top=0.90, bottom=0.24,
 hspace=0.3,wspace=0.9)
 fig.set_size_inches(13, 10.5)
 fig.savefig(sys.argv[1] + _statistics.png)
 #p.show()

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] inconsistency with minor ticks when configuring ticks from scratch

2008-07-31 Thread Orest Kozyar
The following illustrates a slight inconsistency in matplotlib:

a = subplot(111)
a.yaxis.tick_left()
yscale('log')
show()

Since the default linear minor locator is NullLocator, there are no
minor ticks to use as a template when the default logarithmic minor
locator is used.  This results in the minor ticks being drawn on the
right as well as left axes.  It seems more logical to add a flag
somewhere indicating that tick_left was specified, and check this flag
when configuring ticks from scratch.  Likewise for the xaxis.

Orest

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John,

On Thu, Jul 31, 2008 at 18:35, Sandro Tosi [EMAIL PROTECTED] wrote:
 Hi John,

 On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote:

 Sandro, just a reminder, we are still holding on your testing of the
 new release candidate with the 0.4.2 sphinx bugfix.  The current
 release candidate is

 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc3.tar.gz

 Yeah, sorry, I got some RealLife stuff going on, now done. I'll do it
 this night, since I'm just seeing Mikhail is updating sphinx to 0.4.2
 in our svn repo.

The doc compilation is fine, the show-inheritance is fixed, but just a
confirmation: what was the page with the clickable image? I seem to
remember 'api/artist_api.html' but now the image in it doesn't allow
to be browsable.

I'll let you know if something else comes out.

Thanks for the collaboration (to Mikhail too :) ),
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Michael Droettboom
I think perhaps he's referring to the inheritance diagrams which are 
HTML image maps.  It seems that this functionality has somehow broken.  
(The image map is not getting returned from dot and inserted into the 
HTML).  I'm looking into it.

Cheers,
Mike

John Hunter wrote:
 On Thu, Jul 31, 2008 at 1:40 PM, Sandro Tosi [EMAIL PROTECTED] wrote:

   
 The doc compilation is fine, the show-inheritance is fixed, but just a
 confirmation: what was the page with the clickable image? I seem to
 remember 'api/artist_api.html' but now the image in it doesn't allow
 to be browsable.

 I'll let you know if something else comes out.

 Thanks for the collaboration (to Mikhail too :) ),
 Sandro
 

 If you look in api/axes_api.html, some of the functions (the first is
 acorr) have embedded images, and you can click on various link targets
 [source code, png, pdf] for the source code or other output formats.

 JDH

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 20:49, Michael Droettboom [EMAIL PROTECTED] wrote:
 I think perhaps he's referring to the inheritance diagrams which are HTML
 image maps.  It seems that this functionality has somehow broken.  (The
 image map is not getting returned from dot and inserted into the HTML).  I'm
 looking into it.

Yeah, that's what I was referring to. Thanks Mike.

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Michael Droettboom
It seems to have broken with a recent update to Sphinx.  Sphinx changed 
the way that cross-reference urls are stored in the document tree.  I 
have updated matplotlib to use an approach that work for Sphinx both 
before and after this change (SVN r5940).

I don't consider this a show-stopper if it's too late to push another 
matplotlib update out.

Long term, this functionality will move to Sphinx itself, so these 
disconnects will hopefully get caught sooner.

Cheers,
Mike

Sandro Tosi wrote:
 On Thu, Jul 31, 2008 at 20:49, Michael Droettboom [EMAIL PROTECTED] wrote:
   
 I think perhaps he's referring to the inheritance diagrams which are HTML
 image maps.  It seems that this functionality has somehow broken.  (The
 image map is not getting returned from dot and inserted into the HTML).  I'm
 looking into it.
 

 Yeah, that's what I was referring to. Thanks Mike.

   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Figure existence test

2008-07-31 Thread nobody

Two questions for using Matplotlib (via interactive Python prompt, not pylab
interface):

1) How can I get a list of the currently extant figures?
-- In Matlab, I would just type get(0,'children') -- how would
Matplotlib handle this?

2) How can I test if a specified figure exists?

Thanks, --Ian

-
I am a BugMeNot account and postings from this user may not always be from
the same person.
-- 
View this message in context: 
http://www.nabble.com/Figure-existence-test-tp18760841p18760841.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 21:06, Michael Droettboom [EMAIL PROTECTED] wrote:
 It seems to have broken with a recent update to Sphinx.  Sphinx changed the
 way that cross-reference urls are stored in the document tree.  I have
 updated matplotlib to use an approach that work for Sphinx both before and
 after this change (SVN r5940).

 I don't consider this a show-stopper if it's too late to push another
 matplotlib update out.

 Long term, this functionality will move to Sphinx itself, so these
 disconnects will hopefully get caught sooner.

Great, thanks! anyhow, we're still playing with a rc version, so
there's room for it to make into the final release.

For Debian, we still need (I think) a couple of day to upload mpl,
because we need first sphinx 0.4.2 to enter unstable, then we can
upload.

Cheers,
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote:
 It seems to have broken with a recent update to Sphinx.  Sphinx changed the
 way that cross-reference urls are stored in the document tree.  I have
 updated matplotlib to use an approach that work for Sphinx both before and
 after this change (SVN r5940).

 I don't consider this a show-stopper if it's too late to push another
 matplotlib update out.

OK, I think we are ready to roll.  Charlie, you can tag the release
and get to work on the binaries and release when you have time.  I'll
be in sporadic email contact until Monday, so why don't you do the
announce (feel free to just past in the updates in the CHANGELOG).  I
haven't been testing 0.91.x like I have 0.98.x so let's just release
the 0.98.3 point release at this time.  I don't think there are any
mission critical bugs in 91.x that require a release right now.

Sandro, if you want to test the final/final, it is at
http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3.tar.gz (svn
r5941)

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Mikhail Gusarov
Twas brillig at 21:15:20 31.07.2008 UTC+02 when [EMAIL PROTECTED] did gyre and 
gimble:

 ST For Debian, we still need (I think) a couple of day to upload mpl,
 ST because we need first sphinx 0.4.2 to enter unstable, then we can
 ST upload.

Piotr will upload it soon (with urgency=medium), and I'll ask the
release team then to allow it into testing.

-- 


pgpp1O0wng2W2.pgp
Description: PGP signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Michael Droettboom
Now that I'm seeing your image, it's jogged my memory that this bug has 
already been fixed on both our 0.91.x and 0.98.x branches.  What version 
are you using?

Cheers,
Mike

Jonathan Hayward, http://JonathansCorner.com; wrote:
 Yes; thank you; I've attached the script and the generated image.

 On Thu, Jul 31, 2008 at 10:04 AM, Michael Droettboom [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Can you provide a standalone script that reproduces this error?

 Cheers,
 Mike


 Jonathan Hayward, http://JonathansCorner.com; wrote:

 If there are one or more narrow wedges on a pie graph, narrow
 enough that the percentage values overlap and are hard to
 read, there seems to be a knife-thin missing wedge from the
 pie, including a break in the circumference.

 Is this configurable, even if it means that the border
 completely covers the colored interior of ultra-thin wedges?

 -- 
 -- Jonathan Hayward, [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]


 ** To see an award-winning website with stories, essays, artwork,
 ** games, and a four-dimensional maze, why not visit my home page?
 ** All of this is waiting for you at http://JonathansCorner.com

 ++ Would you like to curl up with one of my hardcover books?
 ++ You can now get my books from http://CJSHayward.com
 
 

 
 -
 This SF.Net email is sponsored by the Moblin Your Move
 Developer's challenge
 Build the coolest Linux based applications with Moblin SDK 
 win great prizes
 Grand prize is a trip for two to an Open Source event anywhere
 in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 mailto:Matplotlib-users@lists.sourceforge.net
 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




 -- 
 -- Jonathan Hayward, [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]

 ** To see an award-winning website with stories, essays, artwork,
 ** games, and a four-dimensional maze, why not visit my home page?
 ** All of this is waiting for you at http://JonathansCorner.com

 ++ Would you like to curl up with one of my hardcover books?
 ++ You can now get my books from http://CJSHayward.com
 

 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Jonathan Hayward, http://JonathansCorner.com
I emerged 0.91.2 through my distribution's packaging system. Do I need to
compile the newest version from source or something like that?

On Thu, Jul 31, 2008 at 3:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote:

 Now that I'm seeing your image, it's jogged my memory that this bug has
 already been fixed on both our 0.91.x and 0.98.x branches.  What version are
 you using?

 Cheers,
 Mike

 Jonathan Hayward, http://JonathansCorner.com; wrote:

 Yes; thank you; I've attached the script and the generated image.

 On Thu, Jul 31, 2008 at 10:04 AM, Michael Droettboom [EMAIL 
 PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:

Can you provide a standalone script that reproduces this error?

Cheers,
Mike


Jonathan Hayward, http://JonathansCorner.com; wrote:

If there are one or more narrow wedges on a pie graph, narrow
enough that the percentage values overlap and are hard to
read, there seems to be a knife-thin missing wedge from the
pie, including a break in the circumference.

Is this configurable, even if it means that the border
completely covers the colored interior of ultra-thin wedges?

---- Jonathan Hayward, [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com

  


  -
This SF.Net email is sponsored by the Moblin Your Move
Developer's challenge
Build the coolest Linux based applications with Moblin SDK 
win great prizes
Grand prize is a trip for two to an Open Source event anywhere
in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
http://moblin-contest.org/redirect.php?banner_id=100url=/

  

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
mailto:Matplotlib-users@lists.sourceforge.net
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




 --
 -- Jonathan Hayward, [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED]

 ** To see an award-winning website with stories, essays, artwork,
 ** games, and a four-dimensional maze, why not visit my home page?
 ** All of this is waiting for you at http://JonathansCorner.com

 ++ Would you like to curl up with one of my hardcover books?
 ++ You can now get my books from http://CJSHayward.com
 

 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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




-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] SVG rendering problems

2008-07-31 Thread Mathieu Leplatre
 Can you send your SVG files (or the scripts that generate them) to this list
 so I can look at why they may be failing?  Screenshots or PNGs from
 ImageMagick and/or eog may also be useful, in case I can't reproduce the
 problems with the versions I have here.

Mike, do you want them as attachment in this list ? I put them on my webserver :
http://mathieu-leplatre.info/media/matplotlib-svg/

(can't give you easily the script that generates them, it's a whole software...)

I wanted your opinion before insisting on CentOS forums/mailing-lists.

Thanks for your patience.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
http://JonathansCorner.com [EMAIL PROTECTED] wrote:
 I emerged 0.91.2 through my distribution's packaging system. Do I need to
 compile the newest version from source or something like that?


The 0.98.3 release will be out very soon -- just keep your eyes out
for an announcement on this list.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Jonathan Hayward, http://JonathansCorner.com
Thanks; will do.

On Thu, Jul 31, 2008 at 3:45 PM, John Hunter [EMAIL PROTECTED] wrote:

 On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
 http://JonathansCorner.com [EMAIL PROTECTED] wrote:
  I emerged 0.91.2 through my distribution's packaging system. Do I need to
  compile the newest version from source or something like that?
 

 The 0.98.3 release will be out very soon -- just keep your eyes out
 for an announcement on this list.

 JDH




-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Charlie Moad
On Thu, Jul 31, 2008 at 3:17 PM, John Hunter [EMAIL PROTECTED] wrote:

 On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED]
 wrote:
  It seems to have broken with a recent update to Sphinx.  Sphinx changed
 the
  way that cross-reference urls are stored in the document tree.  I have
  updated matplotlib to use an approach that work for Sphinx both before
 and
  after this change (SVN r5940).
 
  I don't consider this a show-stopper if it's too late to push another
  matplotlib update out.

 OK, I think we are ready to roll.  Charlie, you can tag the release
 and get to work on the binaries and release when you have time.  I'll
 be in sporadic email contact until Monday, so why don't you do the
 announce (feel free to just past in the updates in the CHANGELOG).  I
 haven't been testing 0.91.x like I have 0.98.x so let's just release
 the 0.98.3 point release at this time.  I don't think there are any
 mission critical bugs in 91.x that require a release right now.

 Sandro, if you want to test the final/final, it is at
 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3.tar.gz (svn
 r5941)


So should I be including the built docs in the release now?  I have a few
warnings that make it through to the pages.  I am building them on Ubuntu.

- Charlie
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Charlie Moad
On Thu, Jul 31, 2008 at 9:51 PM, Charlie Moad [EMAIL PROTECTED] wrote:

 On Thu, Jul 31, 2008 at 3:17 PM, John Hunter [EMAIL PROTECTED] wrote:

 On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED]
 wrote:
  It seems to have broken with a recent update to Sphinx.  Sphinx changed
 the
  way that cross-reference urls are stored in the document tree.  I have
  updated matplotlib to use an approach that work for Sphinx both before
 and
  after this change (SVN r5940).
 
  I don't consider this a show-stopper if it's too late to push another
  matplotlib update out.

 OK, I think we are ready to roll.  Charlie, you can tag the release
 and get to work on the binaries and release when you have time.  I'll
 be in sporadic email contact until Monday, so why don't you do the
 announce (feel free to just past in the updates in the CHANGELOG).  I
 haven't been testing 0.91.x like I have 0.98.x so let's just release
 the 0.98.3 point release at this time.  I don't think there are any
 mission critical bugs in 91.x that require a release right now.

 Sandro, if you want to test the final/final, it is at
 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3.tar.gz (svn
 r5941)


 So should I be including the built docs in the release now?  I have a few
 warnings that make it through to the pages.  I am building them on Ubuntu.

 - Charlie


Scratch that.  It looks pretty good with the latest svn.  Now the question
as to where to put the built docs?  doc/build/html seems a bit hidden.
 Has this been discussed yet?

- Charlie
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users