Re: [Matplotlib-users] Matplotlib-users Digest, Vol 72, Issue 25

2012-05-23 Thread Waléria Antunes David
Hi Mike,

About this question: TypeError: coercing to Unicode: need string or buffer,
dict found

The version of matplotlib that i'm using is matplotlib-0.99.1-py2.6

And how do I remove the font cache in ~ / .matplotlib / fontList.cache

My Operating System is Windows.

Thanks,

On Wed, May 23, 2012 at 11:15 AM, <
matplotlib-users-requ...@lists.sourceforge.net> wrote:

> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. Re: Difference in show and output file (rajtendulkar)
>   2. TypeError: coercing to Unicode: need string orbuffer, dict
>  found (Wal?ria Antunes David)
>   3. Re: TypeError: coercing to Unicode: need string or buffer,
>  dict found (Michael Droettboom)
>   4. Re: barchart errorbars always in both directions (Benjamin Root)
>   5. Re: Slow imshow when zooming or panning with several synced
>  subplots (Sergi Pons Freixes)
>   6. Re: barchart errorbars always in both directions
>  (Meesters, Aesku.Kipp Institute)
>
>
> --
>
> Message: 1
> Date: Wed, 23 May 2012 02:49:05 -0700 (PDT)
> From: rajtendulkar 
> Subject: Re: [Matplotlib-users] Difference in show and output file
> To: matplotlib-users@lists.sourceforge.net
> Message-ID: <33894599.p...@talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Just in case, if anyone needs the answer, I figured it out.
> I used the transData transform in order to draw the lines correctly.
>
> Here is the code -
>
> # The code below is to add the lines near the tick labels
> fig = barGraph.fig
> xAxisLim=barGraph.ax.xaxis.get_view_interval()
> tickLocArray = barGraph.ax.xaxis.get_majorticklocs()
> yStart=-70
> yEnd=-0.5
> line = Line2D([xAxisLim[0], xAxisLim[0]],
>  [yStart,yEnd],linewidth=2, color='black',
>   transform=barGraph.ax.transData)
>
> fig.lines.append(line)
>
> for i in xrange(11):
>lnWidth=2
>yStartOffset=0
>if((i+1)%4 != 0):
>lnWidth=1
>yStartOffset=20
>xOffset = tickLocArray[i] + (tickLocArray[i+1] - tickLocArray[i])/2
>line = Line2D([xOffset, xOffset],
>  [yStart+yStartOffset,yEnd],linewidth=lnWidth, color='black',
>   transform=barGraph.ax.transData)
>fig.lines.append(line)
>
>
> line = Line2D([xAxisLim[1], xAxisLim[1]],
>  [yStart,yEnd],linewidth=2, color='black',
>   transform=barGraph.ax.transData)
>
> fig.lines.append(line)
>
> plt.figtext(0.247, 0.05, '1')
> plt.figtext(0.523, 0.05, '2')
> plt.figtext(0.797, 0.05, '4')
>
>
> Thank You!
> Raj
>
>
> rajtendulkar wrote:
> >
> > Dear All,
> >
> > I am trying to write a program in matplotlib to generate stacked bar
> > graphs.
> > My problem is that the commands -  plt.show() and
> > self.fig.savefig(fileName) generate different outputs.
> > I tried different output formats like PDF, PNG, EPS. But the problem
> > remains the same.
> > This happens for the lines that I am trying to draw outside the plot.
> > I am trying to draw vertical lines between xticklabels.
> > I have uploaded the data file and the code file.
> >  http://old.nabble.com/file/p33893817/data.dat data.dat
> >  http://old.nabble.com/file/p33893817/matplot1.py matplot1.py
> > Could anyone explain how to resolve this problem?
> >
> > Thank You,
> > Raj
> >
>
> --
> View this message in context:
> http://old.nabble.com/Difference-in-show-and-output-file-tp33893817p33894599.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
>
>
> --
>
> Message: 2
> Date: Wed, 23 May 2012 09:16:09 -0300
> From: Wal?ria Antunes David 
> Subject: [Matplotlib-users] TypeError: coercing to Unicode: need
>string or   buffer, dict found
> To: Matplotlib Users 
> Message-ID:
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Anyone know how to solve this error?
>
> Exception Type: TypeError Exception Value: coercing to Unicode: need string
> or buffer, dict found
>
> Can you help me??
>
> See mycode: http://dpaste.com/751460/
>
> And see my Traceback: http://dpaste.com/750773/
>
>
> Thanks,
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 3
> Date: Wed, 23 May 2012 08:29:48 -0400
> From: Michael Droettboom 
> Subject: Re: [Matplotlib-users] TypeError: coercing to Unicode: need
>string or buffer, dict found
> To: 
> M

[Matplotlib-users] TypeError: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waléria Antunes David
Hi,

Anyone know how to solve this error?

Exception Type: TypeError Exception Value: coercing to Unicode: need string
or buffer, dict found

Can you help me??

See mycode: http://dpaste.com/751460/

And see my Traceback: http://dpaste.com/750773/


Thanks,
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi Daniel,

Yes, i tried import errorbari did this: import matplotlib.errobar , but
occurred an error: Exception Type: ImportError  Exception Value:

No module named errobar


Thanks,


On Tue, Feb 22, 2011 at 3:59 PM, <
matplotlib-users-requ...@lists.sourceforge.net> wrote:

> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. Re: Histogram with single series - colour coding different
>  ranges? (Benjamin Root)
>   2. Errorbar plot (Wal?ria Antunes David)
>   3. Re: Errorbar plot (Daniel Mader)
>   4. Re: Plotting large data sets with Pylab (Benjamin Root)
>   5. errorbar plot (Wal?ria Antunes David)
>   6. MacOSX backend bug (Dominique Orban)
>
>
> --
>
> Message: 1
> Date: Tue, 22 Feb 2011 10:12:54 -0600
> From: Benjamin Root 
> Subject: Re: [Matplotlib-users] Histogram with single series - colour
>coding different ranges?
> To: Victor Hooi 
> Cc: matplotlib-users@lists.sourceforge.net
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, Feb 15, 2011 at 11:07 PM, Victor Hooi 
> wrote:
>
> > heya,
> >
> > Is there an easy way to colour-code a Matplotlib histogram with a single
> > set of data?
> >
> > So for example, you'd have a bell-shaped histogram, and the middle 50%
> > might be green, the regions 20% to the left and right of that might be
> > yellow, and the 5% either side beyond that could be red.
> >
> > I couldn't seem to find anything in the Matplotlib options for this - any
> > suggestions?
> >
> > Cheers,
> > Victor
> >
> >
> Sure, check out the following:
>
> import matplotlib.pyplot as plt
> import numpy as np
>
> xs = np.arange(20)
> ys = np.random.rand(20)
> cs = (['y'] * round(0.25 * len(xs))) + (['g'] * round(0.5 * len(xs))) +
> (['y'] * round(0.25 * len(xs)))
>
> plt.bar(xs, ys, color=cs)
> plt.show()
>
>
> Admittedly, this isn't using matplotlib's hist() function because it only
> allows for one color per dataset.  However, you can use numpy's histogram
> function to get the bins and counts yourself, and then use bar() to make
> the
> bars.  bar() will allow you to color the bars individually.
>
> I hope this helps!
> Ben Root
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 2
> Date: Tue, 22 Feb 2011 13:13:53 -0300
> From: Wal?ria Antunes David 
> Subject: [Matplotlib-users] Errorbar plot
> To: Matplotlib Users 
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
> I have this line about errorbar plot, but i need a errorbar this:
> http://img14.imageshack.us/i/exampled.jpg/ (in blue)
>
> My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2,
> marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos')
>
> Can you help me?
>
> Thanks,
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 3
> Date: Tue, 22 Feb 2011 17:28:04 +0100
> From: Daniel Mader 
> Subject: Re: [Matplotlib-users] Errorbar plot
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Wal?ria,
>
> you should try to figure out the docstring help :)
>
> In a terminal (IDLE or IPython), just do
> import matplotlib
> matplotlib.errobar?
>
> This will show you extensive help on the command.
>
> You will also need to compare with the regular plot command:
> matplotlib.plot?
>
> Best regards,
> Daniel
>
> P.S. I cannot see what is wrong with your line. Change 'r' to 'b' and
> the plot should be in blue.
>
> 2011/2/22 Wal?ria Antunes David :
> > Hi all,
> >
> > I have this line about errorbar plot, but i need a errorbar this:
> > http://img14.imageshack.us/i/exampled.jpg/ (in blue)
> >
> > My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6,
> elinewidth=2,
> > marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos')
> >
> > Can you help me?
> >
> > Thanks,
> >
> >
> --
> > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
> > Collect, index and harness all the fast moving IT data generated by your
> > applications, servers and devices whether physical, virtual or in the
> cloud.
> > Deliver compliance at lower cost and gain new business insights.
> > Free Soft

[Matplotlib-users] errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi all,

I have this line about errorbar plot, but i need a errorbar this:
http://img14.imageshack.us/i/exampled.jpg/ (in blue)

My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2,
marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos')

Can you help me?

Thanks,
--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi all,

I have this line about errorbar plot, but i need a errorbar this:
http://img14.imageshack.us/i/exampled.jpg/ (in blue)

My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2,
marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos')

Can you help me?

Thanks,
--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
Daniel,

Thank you very muchthe yscale is correct now.this topic is
resolved...

Thanks

On Tue, Feb 22, 2011 at 10:26 AM, Daniel Mader <
danielstefanma...@googlemail.com> wrote:

> Hi Waléria,
>
> in order to test it and help you without spending too much time on it,
> could you please provide a stripped example which runs standalone?
>
> As a general rule you should set limits at the very end of the
> plotting code in order to prevent them from being superseded by
> another command!
>
> Thanks,
> Daniel
>
> 2011/2/22 Waléria Antunes David :
> > I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing.
> See
> > my code: http://pastebin.com/Jt3BTp0C (line 14)
> >
> > See my image generated - attached.
> >
> > thanks,
> >
> > On Tue, Feb 22, 2011 at 9:37 AM, Mike Kaufman  wrote:
> >>
> >> send me your data.
> >>
> >> M
> >>
> >> On 2/22/11 6:29 AM, Waléria Antunes David wrote:
> >>>
> >>> See this pdf attachedthe yscale has these values: 1, 10, 100, 1000
> >>> I need this. My code: http://pastebin.com/HKCGQWez
> >>> Can you help me, please??
> >>>
> >>> Thanks,
> >>>
> >>> On Mon, Feb 21, 2011 at 4:41 PM, Benjamin Root  >>> <mailto:ben.r...@ou.edu>> wrote:
> >>>
> >>>
> >>>
> >>>On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David
> >>>mailto:waleriantu...@gmail.com>> wrote:
> >>>
> >>>Can you help me...please.
> >>>
> >>>On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David
> >>>mailto:waleriantu...@gmail.com>>
> wrote:
> >>>
> >>>I don't understand...i need that the yscale has these
> >>>values: 1,10,100,1000 But i don't know how...
> >>>
> >>>Thanks,
> >>>
> >>>
> >>>
> >>>Let me make it clearer.  Your green line has values on the order of
> >>>10^-17.  There is nothing that can be done to meet your request if
> >>>you are plotting data this small.  Either this data is wrong, or you
> >>>don't want to plot it at all.
> >>>
> >>>To exclude anything less than 1, use the following:
> >>>
> >>>ax.set_ylim(bottom=1)
> >>>
> >>>Note that this will exclude the green line in your plot!
> >>>
> >>>Ben Root
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> --
> >>> Index, Search&  Analyze Logs and other IT data in Real-Time with Splunk
> >>> Collect, index and harness all the fast moving IT data generated by
> your
> >>> applications, servers and devices whether physical, virtual or in the
> >>> cloud.
> >>> Deliver compliance at lower cost and gain new business insights.
> >>> Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
> >>>
> >>>
> >>>
> >>> ___
> >>> Matplotlib-users mailing list
> >>> Matplotlib-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >>
> >
> >
> >
> --
> > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
> > Collect, index and harness all the fast moving IT data generated by your
> > applications, servers and devices whether physical, virtual or in the
> cloud.
> > Deliver compliance at lower cost and gain new business insights.
> > Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
Do you want my complete code?

Thanks,

On Tue, Feb 22, 2011 at 10:17 AM, Mike Kaufman  wrote:

> Look, something about your dataset is most likely causing this problem.
> Send me the 5 data series you are using for this code, and I will attempt to
> reproduce the plot (and then show you how I did it).
>
> M
>
>
> On 2/22/11 7:47 AM, Waléria Antunes David wrote:
>
>> I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing.
>> See my code: http://pastebin.com/Jt3BTp0C (line 14)
>>
>> See my image generated - attached.
>>
>> thanks,
>>
>> On Tue, Feb 22, 2011 at 9:37 AM, Mike Kaufman > <mailto:mck...@gmail.com>> wrote:
>>
>>send me your data.
>>
>>M
>>
>>
>>On 2/22/11 6:29 AM, Waléria Antunes David wrote:
>>
>>See this pdf attachedthe yscale has these values: 1, 10,
>>100, 1000
>>I need this. My code: http://pastebin.com/HKCGQWez
>>Can you help me, please??
>>
>>Thanks,
>>
>>On Mon, Feb 21, 2011 at 4:41 PM, Benjamin Root ><mailto:ben.r...@ou.edu>
>><mailto:ben.r...@ou.edu <mailto:ben.r...@ou.edu>>> wrote:
>>
>>
>>
>>On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David
>>    mailto:waleriantu...@gmail.com>
>><mailto:waleriantu...@gmail.com
>>
>><mailto:waleriantu...@gmail.com>>> wrote:
>>
>>Can you help me...please.
>>
>>On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David
>>mailto:waleriantu...@gmail.com>
>><mailto:waleriantu...@gmail.com
>>
>><mailto:waleriantu...@gmail.com>>> wrote:
>>
>>I don't understand...i need that the yscale has these
>>values: 1,10,100,1000 But i don't know how...
>>
>>Thanks,
>>
>>
>>
>>Let me make it clearer.  Your green line has values on the
>>order of
>>10^-17.  There is nothing that can be done to meet your
>>request if
>>you are plotting data this small.  Either this data is
>>wrong, or you
>>don't want to plot it at all.
>>
>>To exclude anything less than 1, use the following:
>>
>>ax.set_ylim(bottom=1)
>>
>>Note that this will exclude the green line in your plot!
>>
>>Ben Root
>>
>>
>>
>>
>>
>>  
>> --
>>Index, Search&  Analyze Logs and other IT data in Real-Time with
>>Splunk
>>Collect, index and harness all the fast moving IT data generated
>>by your
>>applications, servers and devices whether physical, virtual or
>>in the cloud.
>>Deliver compliance at lower cost and gain new business insights.
>>Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
>>
>>
>>
>>___
>>Matplotlib-users mailing list
>>Matplotlib-users@lists.sourceforge.net
>><mailto:Matplotlib-users@lists.sourceforge.net>
>>
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>>
>>
>
--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing. See
my code: http://pastebin.com/Jt3BTp0C (line 14)

See my image generated - attached.

thanks,

On Tue, Feb 22, 2011 at 9:37 AM, Mike Kaufman  wrote:

> send me your data.
>
> M
>
>
> On 2/22/11 6:29 AM, Waléria Antunes David wrote:
>
>> See this pdf attachedthe yscale has these values: 1, 10, 100, 1000
>> I need this. My code: http://pastebin.com/HKCGQWez
>> Can you help me, please??
>>
>> Thanks,
>>
>> On Mon, Feb 21, 2011 at 4:41 PM, Benjamin Root > <mailto:ben.r...@ou.edu>> wrote:
>>
>>
>>
>>On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David
>>mailto:waleriantu...@gmail.com>> wrote:
>>
>>Can you help me...please.
>>
>>On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David
>>mailto:waleriantu...@gmail.com>> wrote:
>>
>>I don't understand...i need that the yscale has these
>>values: 1,10,100,1000 But i don't know how...
>>
>>Thanks,
>>
>>
>>
>>Let me make it clearer.  Your green line has values on the order of
>>10^-17.  There is nothing that can be done to meet your request if
>>you are plotting data this small.  Either this data is wrong, or you
>>don't want to plot it at all.
>>
>>To exclude anything less than 1, use the following:
>>
>>ax.set_ylim(bottom=1)
>>
>>Note that this will exclude the green line in your plot!
>>
>>Ben Root
>>
>>
>>
>>
>>
>> --
>> Index, Search&  Analyze Logs and other IT data in Real-Time with Splunk
>> Collect, index and harness all the fast moving IT data generated by your
>> applications, servers and devices whether physical, virtual or in the
>> cloud.
>> Deliver compliance at lower cost and gain new business insights.
>> Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
>>
>>
>>
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
<>--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
See this pdf attachedthe yscale has these values: 1, 10, 100, 1000 I
need this. My code: http://pastebin.com/HKCGQWez
Can you help me, please??

Thanks,

On Mon, Feb 21, 2011 at 4:41 PM, Benjamin Root  wrote:

>
>
> On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Can you help me...please.
>>
>> On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David <
>> waleriantu...@gmail.com> wrote:
>>
>>> I don't understand...i need that the yscale has these values:
>>> 1,10,100,1000 But i don't know how...
>>>
>>> Thanks,
>>>
>>>
>>>
> Let me make it clearer.  Your green line has values on the order of
> 10^-17.  There is nothing that can be done to meet your request if you are
> plotting data this small.  Either this data is wrong, or you don't want to
> plot it at all.
>
> To exclude anything less than 1, use the following:
>
> ax.set_ylim(bottom=1)
>
> Note that this will exclude the green line in your plot!
>
> Ben Root
>
>


v_graph.pdf
Description: Adobe PDF document
--
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
Can you help me...please.

On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> I don't understand...i need that the yscale has these values: 1,10,100,1000
> But i don't know how...
>
> Thanks,
>
>
> On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root  wrote:
>
>>
>>
>> On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David <
>> waleriantu...@gmail.com> wrote:
>>
>>> I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 .
>>> Would be the correct way: 1, 10, 100, 1000.
>>>
>>> See the wrong image attached.  And the correct image - correct_graph
>>> attached.
>>>
>>> Thanks,
>>>
>>>
>> The graph isn't wrong.
>>
>> You are plotting really small values.  If you don't want those values
>> plotted, then don't plot them, or set the lower limits.
>>
>> Ben Root
>>
>
>
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I don't understand...i need that the yscale has these values: 1,10,100,1000
But i don't know how...

Thanks,

On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root  wrote:

>
>
> On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 . Would
>> be the correct way: 1, 10, 100, 1000.
>>
>> See the wrong image attached.  And the correct image - correct_graph
>> attached.
>>
>> Thanks,
>>
>>
> The graph isn't wrong.
>
> You are plotting really small values.  If you don't want those values
> plotted, then don't plot them, or set the lower limits.
>
> Ben Root
>
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I don't know how to do this. Can you help me?


On Mon, Feb 21, 2011 at 3:32 PM, Benjamin Root  wrote:

>
>
> On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you
>> help me,  please.
>>
>> Thanks,
>>
>>
>> On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David <
>> waleriantu...@gmail.com> wrote:
>>
>>> So...now my xscale is correct but the yscale ...i need that in the yscale
>>> should have a scale like this: 1 - 10 - 100 - 1000 ... without using power
>>> rating . Can you help me??
>>> See my image attached..
>>>
>>> Thanks,
>>>
>>>
> Waleria,
>
> The data you are plotting contains points that have y-values as low as
> 10^-17.  Plotting so that the y-*axis* has ticks of 1 - 10 - 100 - 1000
> would result in those points to be missing from the plot.  Is that what you
> want?
>
> To address the specific formatting of your tick labels, you can change the
> formatter being used for that axis:
>
>
> http://matplotlib.sourceforge.net/api/ticker_api.html?highlight=tick%20formatter
>
> By default, using ax.set_yscale('log') will automatically set the
> LogFormatter object for formatting the y-axis.  If you don't want this
> formatter, you can replace it with another formatter object.
>
> Ben Root
>
>
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you
help me,  please.

Thanks,

On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> So...now my xscale is correct but the yscale ...i need that in the yscale
> should have a scale like this: 1 - 10 - 100 - 1000 ... without using power
> rating . Can you help me??
> See my image attached..
>
> Thanks,
>
>
> On Mon, Feb 21, 2011 at 1:32 PM, Benjamin Root  wrote:
>
>>
>>
>> On Mon, Feb 21, 2011 at 10:23 AM, Waléria Antunes David <
>> waleriantu...@gmail.com> wrote:
>>
>>> See my code: http://pastebin.com/xtgKteuW
>>>
>>> I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 -
>>> 8 - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my
>>> images, the image correct_graph is correct.
>>>
>>> Thanks,
>>>
>>>
>>>
>> One problem at a time.  You are doing an errorbar plot and then creating a
>> subplot.  The subplot axes will not be the same thing as the axes you just
>> made the errorbar plot on.
>>
>> See the correction here: http://pastebin.com/aZEJuGs2
>>
>> Note, this does not address your tick label problem yet, just your
>> plotting problem.
>>
>> Ben Root
>>
>>
>
<>--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 57, Issue 60

2011-02-21 Thread Waléria Antunes David
I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you
help me,  please.

Thanks,

On Mon, Feb 21, 2011 at 1:51 PM, <
matplotlib-users-requ...@lists.sourceforge.net> wrote:

> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. Re: xscale and yscale (Benjamin Root)
>   2. Re: xscale and yscale (Wal?ria Antunes David)
>
>
> --
>
> Message: 1
> Date: Mon, 21 Feb 2011 10:32:13 -0600
> From: Benjamin Root 
> Subject: Re: [Matplotlib-users] xscale and yscale
> To: Wal?ria Antunes David 
> Cc: Matplotlib Users 
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Mon, Feb 21, 2011 at 10:23 AM, Wal?ria Antunes David <
> waleriantu...@gmail.com> wrote:
>
> > See my code: http://pastebin.com/xtgKteuW
> >
> > I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 -
> 8
> > - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my
> > images, the image correct_graph is correct.
> >
> > Thanks,
> >
> >
> >
> One problem at a time.  You are doing an errorbar plot and then creating a
> subplot.  The subplot axes will not be the same thing as the axes you just
> made the errorbar plot on.
>
> See the correction here: http://pastebin.com/aZEJuGs2
>
> Note, this does not address your tick label problem yet, just your plotting
> problem.
>
> Ben Root
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 2
> Date: Mon, 21 Feb 2011 13:51:21 -0300
> From: Wal?ria Antunes David 
> Subject: Re: [Matplotlib-users] xscale and yscale
> To: Benjamin Root 
> Cc: Matplotlib Users 
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> So...now my xscale is correct but the yscale ...i need that in the yscale
> should have a scale like this: 1 - 10 - 100 - 1000 ... without using power
> rating . Can you help me??
> See my image attached..
>
> Thanks,
>
> On Mon, Feb 21, 2011 at 1:32 PM, Benjamin Root  wrote:
>
> >
> >
> > On Mon, Feb 21, 2011 at 10:23 AM, Wal?ria Antunes David <
> > waleriantu...@gmail.com> wrote:
> >
> >> See my code: http://pastebin.com/xtgKteuW
> >>
> >> I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 -
> 8
> >> - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my
> >> images, the image correct_graph is correct.
> >>
> >> Thanks,
> >>
> >>
> >>
> > One problem at a time.  You are doing an errorbar plot and then creating
> a
> > subplot.  The subplot axes will not be the same thing as the axes you
> just
> > made the errorbar plot on.
> >
> > See the correction here: http://pastebin.com/aZEJuGs2
> >
> > Note, this does not address your tick label problem yet, just your
> plotting
> > problem.
> >
> > Ben Root
> >
> >
> -- next part --
> An HTML attachment was scrubbed...
> -- next part --
> A non-text attachment was scrubbed...
> Name: graph.png
> Type: image/png
> Size: 27949 bytes
> Desc: not available
>
> --
>
>
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
>
> --
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> End of Matplotlib-users Digest, Vol 57, Issue 60
> 
>
<>--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
So...now my xscale is correct but the yscale ...i need that in the yscale
should have a scale like this: 1 - 10 - 100 - 1000 ... without using power
rating . Can you help me??
See my image attached..

Thanks,

On Mon, Feb 21, 2011 at 1:32 PM, Benjamin Root  wrote:

>
>
> On Mon, Feb 21, 2011 at 10:23 AM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> See my code: http://pastebin.com/xtgKteuW
>>
>> I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 - 8
>> - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my
>> images, the image correct_graph is correct.
>>
>> Thanks,
>>
>>
>>
> One problem at a time.  You are doing an errorbar plot and then creating a
> subplot.  The subplot axes will not be the same thing as the axes you just
> made the errorbar plot on.
>
> See the correction here: http://pastebin.com/aZEJuGs2
>
> Note, this does not address your tick label problem yet, just your plotting
> problem.
>
> Ben Root
>
>
<>--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Help in graph

2010-10-19 Thread Waléria Antunes David
Hi,

This example helped me. I have another question. How do I insert the label
as in the example image?: Data from Riess et al (2004)

Thanks,
Waleria.

On Tue, Oct 19, 2010 at 3:50 PM, Paul Hobson  wrote:

> Waléria,
>
> Hopefully this example helps:
>
> # code...
> import matplotlib.pyplot as plt
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.plot([0,1,2], [0,1,3], 'ko')
>
> # set the xticks manually
> ax.set_xticks([0,0.5,1.0,1.5,2])
>
> # set the yticks using "range"
> ytix = range(6)
> ax.set_yticks(ytix)
> plt.show()
> #...done
>
> --paul
>
>
>
>
>
> On Tue, Oct 19, 2010 at 10:15 AM, Waléria Antunes David
>  wrote:
> > Hi all,
> >
> > I have a graph. I plotted using python, matplotlib. And i have an
> example.
> >
> > I need to let the x-axis of my graph, and how do I change plt.ylabel
> ('Y',
> > size = 10) as the example.
> >
> > Example: In my graph, the x-axis this way: 0.0 - 0.2 -- 0.4 -
> > 0.6 --- 0.8 --- 1.0 --- 1.2  1.4
> > I need this way: 0 - 0.5 -- 1.0 - 1.5  2
> >
> > My code: http://pastebin.com/GZqWKwZf
> >
> > Can you help me?
> >
> > Thanks
> > Waleria
> >
> >
> >
> >
> --
> > Download new Adobe(R) Flash(R) Builder(TM) 4
> > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> > Flex(R) Builder(TM)) enable the development of rich applications that run
> > across multiple browsers and platforms. Download your free trials today!
> > http://p.sf.net/sfu/adobe-dev2dev
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Equation

2010-10-13 Thread Waléria Antunes David
Hi all,

I know here is a group for matplotlib, but can anyone help me? I need to
pass this integral equation for for scipy.integrate pack for python.

My integral equation is attached.

Can anyone help me?

Thanks
Waleria.
<>--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Graph

2010-10-08 Thread Waléria Antunes David
I don't understand what you did, i'm reading error data from a file.

def gera_grafico(N=200, eps=1):

x = np.abs(np.random.randn(N))
y = 10*np.log((30*x + 1.)**(0.5)) + 34 + eps * np.random.randn(N)
yerr = eps * np.random.randn(N)

I don't understand what you did in this code

??

Thanks,
Waleria.


On Thu, Oct 7, 2010 at 5:06 PM, Tony S Yu  wrote:

>
> On Oct 7, 2010, at 3:38 PM, Waléria Antunes David wrote:
>
> Hi,
>
> I did like the links below, but seeing as it was my chart.
>
> See
>
> My code: http://pastebin.com/KcjHAPLN
>
> On Thu, Oct 7, 2010 at 3:08 PM, John Hunter  wrote:
>
>> On Thu, Oct 7, 2010 at 1:01 PM, Waléria Antunes David
>>  wrote:
>> > I need to know how do these vertical lines on the graph. See the
>> picture,
>> > the lines circled.
>>
>> We call these major and minor ticks.  The major ticks are the taller
>> ones, the minor ticks are the smaller ones.  Their location is
>> controlled by the major and minor Locator instances, and the text
>> printed beside them is controlled by the major and minor formatter.
>>
>> See
>>
>>
>> http://matplotlib.sourceforge.net/examples/pylab_examples/major_minor_demo1.html
>>
>> http://matplotlib.sourceforge.net/examples/pylab_examples/major_minor_demo2.html
>>
>> and
>>
>>  http://matplotlib.sourceforge.net/search.html?q=codex+set_minor_locator
>>
>> To control the tick properties themselves, see the Tick section in
>>
>>  http://matplotlib.sourceforge.net/users/artists.html
>>
>> JDH
>>
>
> 
>
>
> As John mentioned, the major and minor ticks were the taller and shorter
> ticks, respectively. In your pasted example, you only change the minor
> ticks; by setting the majorLocator to same value as in the original example
> (i.e. 20), you only get the major tick at 0 because your data only goes to
> 1.5 (i.e. 20 is outside your plot range).
>
> Also, the majorFormatter in the example is set to work with integers, but
> your major tick labels should be float values (since most of them are
> between 0 and 1). Thus, the majorFormatter code is unnecessary (commented
> out below).
>
> Finally, a pet peeve: when posting example code, please make the effort to
> generate data for the plot so that others can easily run the code (see
> attached).
>
> -Tony
>
> #---
>
> import numpy as np
> import matplotlib.pyplot as plt
> from matplotlib.ticker import MultipleLocator, FormatStrFormatter
>
> def gera_grafico(N=200, eps=1):
>
> x = np.abs(np.random.randn(N))
> y = 10*np.log((30*x + 1.)**(0.5)) + 34 + eps * np.random.randn(N)
> yerr = eps * np.random.randn(N)
>
> majorLocator   = MultipleLocator(0.2)
> # majorFormatter = FormatStrFormatter('%d')
> minorLocator   = MultipleLocator(0.02)
>
> fig, ax = plt.subplots()
> plt.errorbar(x, y, yerr, fmt='ob', label='date')
>
> plt.xlim(0.0, 1.5)
> #plt.xscale('log')
> #grid(True)
>
> ax.xaxis.set_major_locator(majorLocator)
> # ax.xaxis.set_major_formatter(majorFormatter)
>
> ax.xaxis.set_minor_locator(minorLocator)
>
> return fig
>
> if __name__ == '__main__':
> gera_grafico()
> plt.show()
>
>
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Graph

2010-10-07 Thread Waléria Antunes David
Hi,

I'm asking how to have only the vertical grid lines.?
And I'm trying to increase the spacing in the x direction, I used the
'ax.set_xscale (' log ')', but the points were even more confused.
Do you saw my image that sent yestarday?

Thanks,
Waleria

On Wed, Oct 6, 2010 at 5:10 PM, Benjamin Root  wrote:

>
>
> On Wed, Oct 6, 2010 at 2:36 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Benjamin,
>>
>> I used the 'ax.set_xscale (' log ')', but the points were even more
>> confused. What I need is to increase from 0.0 to 0.2 points, 0.2 to 0.4 ...
>> increase the size of the graph. However I do not know if the chart is well
>> visualized on a monitor 20''.?
>>
>>
> Are you trying to increase the spacing in the x direction or the y
> direction?  Log scaling is a standard trick to achieve this effect.
>
>
>> And how do I let my chart like this:
>> http://www.supernova.lbl.gov/PDFs/SCP2003SNeCMBClust.pdf
>> This graph format with vertical line on, something like that.
>>
>>
> Are you asking how to add a vertical line to your graph, or how to have
> only the vertical grid lines?
>
> Ben Root
>
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Graph

2010-10-07 Thread Waléria Antunes David
How to have only the vertical grid lines.?
And I trying to increase the spacing in the x direction, I used the
'ax.set_xscale (' log ')', but the points were even more confused. Do you
saw my image that sent yestarday?

On Wed, Oct 6, 2010 at 5:10 PM, Benjamin Root  wrote:

>
>
> On Wed, Oct 6, 2010 at 2:36 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Benjamin,
>>
>> I used the 'ax.set_xscale (' log ')', but the points were even more
>> confused. What I need is to increase from 0.0 to 0.2 points, 0.2 to 0.4 ...
>> increase the size of the graph. However I do not know if the chart is well
>> visualized on a monitor 20''.?
>>
>>
> Are you trying to increase the spacing in the x direction or the y
> direction?  Log scaling is a standard trick to achieve this effect.
>
>
>> And how do I let my chart like this:
>> http://www.supernova.lbl.gov/PDFs/SCP2003SNeCMBClust.pdf
>> This graph format with vertical line on, something like that.
>>
>>
> Are you asking how to add a vertical line to your graph, or how to have
> only the vertical grid lines?
>
> Ben Root
>
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ERROR

2010-10-05 Thread Waléria Antunes David
Benjamin,

You were right, the error was being cause because this '^' .. problem
solved.

Thank you very much

On Tue, Oct 5, 2010 at 11:38 AM, Benjamin Root  wrote:

> On Tue, Oct 5, 2010 at 7:25 AM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Benjamin,
>>
>> I tried this: x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)
>>
>> but the error continue: http://pastebin.com/UwgKS3s5
>>
>> Thanks,
>> Waleria.
>>
>>
>> On Mon, Oct 4, 2010 at 4:58 PM, Benjamin Root  wrote:
>>
>>> On Mon, Oct 4, 2010 at 1:57 PM, Waléria Antunes David <
>>> waleriantu...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> My problem is this error: 
>>>> http://pastebin.com/bfu29WuF<http://pastebin.com/ZPzdC5c8>
>>>>
>>>> my code: http://pastebin.com/KzwEmucN
>>>>
>>>> What could be?
>>>>
>>>> Thanks
>>>> Waleria
>>>>
>>>
> Waleria,
>
> Good!  There is progress.  The error indicates that the processing
> successfully loaded the data and that it fails when it tries to save the
> figure.  Specifically, it is failing to produce the LaTeX-like labels you
> have made.  Looking closer, I see that the carot symbol '^' that you are
> using to get a superscript is a unicode carot symbol, not an ASCII one.
> This causes the formatting parsing to fail.  You need to use the ASCII
> symbol ^ to make it work properly.
>
> I hope that helps.
>
> Ben Root
>
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ERROR

2010-10-05 Thread Waléria Antunes David
Benjamin,

I tried this: x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)

but the error continue: http://pastebin.com/UwgKS3s5

Thanks,
Waleria.

On Mon, Oct 4, 2010 at 4:58 PM, Benjamin Root  wrote:

> On Mon, Oct 4, 2010 at 1:57 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Hi all,
>>
>> My problem is this error: 
>> http://pastebin.com/bfu29WuF<http://pastebin.com/ZPzdC5c8>
>>
>> my code: http://pastebin.com/KzwEmucN
>>
>> What could be?
>>
>> Thanks
>> Waleria
>>
>
> Waleria,
>
> I am not entirely familiar with programming python in a Windows
> environment, however, you are attempting to open files with the name:
> 'C:\date1.dat'.  The backslash is probably acting as an escape character and
> causing the filename to be interpreted differently from how you expect.  Try
> this:
>
> x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)
>
> The 'r' before the string forces python to not interpret any special
> characters in a special way.  Also note that I simplified your data loading
> code with the use of the 'unpack=True' keyword argument.
>
> I hope this helps,
> Ben Root
>
>
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] ERROR

2010-10-04 Thread Waléria Antunes David
Hi all,

My problem is this error:
http://pastebin.com/bfu29WuF

my code: http://pastebin.com/KzwEmucN

What could be?

Thanks
Waleria
--
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Error

2010-09-15 Thread Waléria Antunes David
Hi,

My problem is that: http://pastebin.com/ZPzdC5c8

but on my code: http://pastebin.com/Rgbm2Fgd
I include the *use* command as a firstline

what could be?

Thanks
Waleria
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80

2010-07-30 Thread Waléria Antunes David
Hi Paul,

Thank you very much..

You tip helped me a lot, problem solved.

Thank you

On Thu, Jul 29, 2010 at 9:47 PM,  wrote:

>  Whoops. That didn’t stick like I thought it would. Try here:
> http://pastebin.com/rJtUuWne
>
> -paul
>
>
>
> *From:* Paul Hobson
> *Sent:* Thursday, July 29, 2010 5:46 PM
> *To:* Waléria Antunes David; matplotlib-users@lists.sourceforge.net
> *Subject:* RE: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue
> 80
>
>
>
> I submitted a correction to the code in your pastebin link below. Revisit
> the link (http://pastebin.com/vSbkXDzE) and run that code.
>
> -paul
>
>
>
> -
>
> *From:* Waléria Antunes David [mailto:waleriantu...@gmail.com]
> *Sent:* Thursday, July 29, 2010 12:08 PM
> *To:* matplotlib-users@lists.sourceforge.net
> *Subject:* Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue
> 80
>
>
>
> Hi ,
>
> I made the changes as bellow and it displays the x-axis values formatted as
> expected, see my current image and my code. But, now i need to change the
> scale and the numbers of decimal places in order to appear on the graph like
> this: 3.0 3.1  3.2  ..   3.4
>
> My code: http://pastebin.com/vSbkXDzE
>
> Can you help me?
>
>
>
>
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 79

2010-07-29 Thread Waléria Antunes David
On Thu, Jul 29, 2010 at 8:45 AM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> Hi
>
> I made the changes as bellow and it displays the x-axis values formatted as
> expected, see my current image and my code. But, now i need to change the
> scale and the numbers of decimal places in order to appear on the graph like
> this: 3.0 3.1  3.2  ..   3.4
>
> My code: http://pastebin.com/vSbkXDzE
>
> Can you help me?
>
> Waleria
>
>
> On Wed, Jul 28, 2010 at 8:41 PM, <
> matplotlib-users-requ...@lists.sourceforge.net> wrote:
>
>> Send Matplotlib-users mailing list submissions to
>>matplotlib-users@lists.sourceforge.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> or, via email, send a message with subject or body 'help' to
>>matplotlib-users-requ...@lists.sourceforge.net
>>
>> You can reach the person managing the list at
>>matplotlib-users-ow...@lists.sourceforge.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Matplotlib-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: hz to khz (Angus McMorland)
>>   2. Re: hz to khz (Benjamin Root)
>>   3. Arrow in log space (Thomas Robitaille)
>>   4. Re: Arrow in log space (Benjamin Root)
>>   5. Re: Confusion Matrix (Simon Friedberger)
>>   6. Re: Saving as eps file shifts image? (Jae-Joon Lee)
>>
>>
>> --
>>
>> Message: 1
>> Date: Wed, 28 Jul 2010 15:39:29 -0400
>> From: Angus McMorland 
>> Subject: Re: [Matplotlib-users] hz to khz
>> To: Matplotlib Users 
>> Message-ID:
>>
>> 
>> >
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> On 28 July 2010 15:25, Wal?ria Antunes David 
>> wrote:
>> > Hello all,
>> >
>> > Well, my problem is ... My current code is as follow bellow:
>> > http://pastebin.com/7p2N5d64
>>
>> Hi Wal?ria,
>>
>> We can't easily fix your problem without knowing what data f and
>> Sserie contain. It would help us to help you if you could post a
>> standalone example that shows your problem without relying on external
>> data.
>>
>> Angus.
>> --
>> AJC McMorland
>> Post-doctoral research fellow
>> Neurobiology, University of Pittsburgh
>>
>>
>>
>> --
>>
>> Message: 2
>> Date: Wed, 28 Jul 2010 14:59:35 -0500
>> From: Benjamin Root 
>> Subject: Re: [Matplotlib-users] hz to khz
>> To: Angus McMorland 
>> Cc: Matplotlib Users 
>> Message-ID:
>>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> On Wed, Jul 28, 2010 at 2:39 PM, Angus McMorland 
>> wrote:
>>
>> > On 28 July 2010 15:25, Wal?ria Antunes David 
>> > wrote:
>> > > Hello all,
>> > >
>> > > Well, my problem is ... My current code is as follow bellow:
>> > > http://pastebin.com/7p2N5d64
>> >
>> > Hi Wal?ria,
>> >
>> > We can't easily fix your problem without knowing what data f and
>> > Sserie contain. It would help us to help you if you could post a
>> > standalone example that shows your problem without relying on external
>> > data.
>> >
>> > Angus.
>> > --
>> > AJC McMorland
>> > Post-doctoral research fellow
>> > Neurobiology, University of Pittsburgh
>> >
>> >
>> Angus is correct that providing a stand-alone version of the script that
>> replicates your problem would be most useful.  I would like to mention a
>> couple of possible improvements to your code.  These improvements may or
>> may
>> not fix your issue, but they will improve your current code.
>>
>> 1) Use list comprehensions
>>
>> Change
>>
>> y=[]
>> for n in f:
>>y.append(n/Decimal(1000))
>> y = numpy.array(y)
>>
>> into:
>>
>> y = numpy.array(f) / 1000.0
>>
>> Also,
>>
>> ax.grid('TRUE')
>>
>> should be:
>>
>>  ax.grid(True)
>>
>> I hope this helps.  If not, then please send a stand-alone example that
>> duplicates the problem you are having.
>> Ben Root
>> -- next part --
>> An HTML attachment was scrubbed...
>>

[Matplotlib-users] hz to khz

2010-07-28 Thread Waléria Antunes David
Hello all,

Well, my problem is ... My current code is as follow bellow:
http://pastebin.com/7p2N5d64

and generates following image, the x-axis of the graph shows values em Hz,
values that range from 3000 to 3400, my image is attached.

But, i need the x-axis  values is displayed in Khz, ranging from 3,0 to 3,4.

But, if i change my code as bellow (line 14 to 21) the image isn't displayed
in the template:
http://pastebin.com/LNgbejma

Thak You
Waléria
<>--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
I did what you showed me but the image disappears

On Mon, Jul 26, 2010 at 2:06 PM,  wrote:

>  Replace this line:
>
>   ax.plot(f/1000, Sserie)
>
>
>
> With this line:
>
>   ax.plot(f/1000.0, Sserie)
>
>
>
> And tell us how things go. Python 2.6 distinguishes between integers and
> floats very strictly. Hence:
>
> In [1]: 20/1000
>
> Out[1]: 0
>
>
>
> In [2]: 20.0/1000.0
>
> Out[2]: 0.02
>
>
>
> See the difference?
>
> -paul
>
>
>
> *From:* Waléria Antunes David [mailto:waleriantu...@gmail.com]
> *Sent:* Monday, July 26, 2010 10:01 AM
> *To:* Angus McMorland
>
> *Cc:* matplotlib-users@lists.sourceforge.net
> *Subject:* Re: [Matplotlib-users] Hz to KHz
>
>
>
> i don't understand..
>
> On Mon, Jul 26, 2010 at 1:57 PM, Angus McMorland 
> wrote:
>
> On 26 July 2010 12:47, Waléria Antunes David 
> wrote:
> > My code like this in django: http://pastebin.com/nzM5jvuc
>
> Are you perhaps suffering from integer division? How about dividing by
> 1000.0, instead of 1000?
>
> Angus.
>
>
> > i'm lost
> >
> > On Mon, Jul 26, 2010 at 1:42 PM,  wrote:
> >>
> >> Make sure that you’re dividing by 1000.0 (as opposed to 1000) to avoid
> any
> >> integer nonsense and make sure to reset your axis limits.
> >>
> >>
> >>
> >> Posting a small code snippet would help us get you on the right track.
> >>
> >> -p
> >>
> >>
> >>
> >> From: Waléria Antunes David [mailto:waleriantu...@gmail.com]
> >> Sent: Monday, July 26, 2010 9:32 AM
> >> To: Matthieu Brucher
> >> Cc: matplotlib-users@lists.sourceforge.net
> >> Subject: Re: [Matplotlib-users] Hz to KHz
> >>
> >>
> >>
> >> I know...I tried but I'm using django and also when divided by 1000 the
> >> image does not appear...
> >> I don't know what to do.help me
> >>
> >> On Mon, Jul 26, 2010 at 1:27 PM, Matthieu Brucher
> >>  wrote:
> >>
> >> Hi,
> >>
> >> You may just divide them by 1000?
> >>
> >> Matthieu
> >>
> >> 2010/7/26 Waléria Antunes David :
> >>
> >> > Hello all,
> >> >
> >> > I need to format the values of graphic to KHz.my values are in Hz
> >> > see at idle python it displays the values as: 3000 3050 3100  3400
> ,
> >> > but
> >> > I need to go where it will be displayed KHz:  3.0 3.1
> >> >
> >> > can someone help me?
> >>
> >> >
> >> >
> --
> >> > The Palm PDK Hot Apps Program offers developers who use the
> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> >> > of $1 Million in cash or HP Products. Visit us here for more details:
> >> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> >> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> >> > ___
> >> > Matplotlib-users mailing list
> >> > Matplotlib-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Information System Engineer, Ph.D.
> >> Blog: http://matt.eifelle.com
> >> LinkedIn: http://www.linkedin.com/in/matthieubrucher
> >>
> >>
> >
> >
> --
> > The Palm PDK Hot Apps Program offers developers who use the
> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> > of $1 Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
>
>
> --
>
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh
>
>
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
i don't understand..

On Mon, Jul 26, 2010 at 1:57 PM, Angus McMorland  wrote:

> On 26 July 2010 12:47, Waléria Antunes David 
> wrote:
> > My code like this in django: http://pastebin.com/nzM5jvuc
>
> Are you perhaps suffering from integer division? How about dividing by
> 1000.0, instead of 1000?
>
> Angus.
>
> > i'm lost
> >
> > On Mon, Jul 26, 2010 at 1:42 PM,  wrote:
> >>
> >> Make sure that you’re dividing by 1000.0 (as opposed to 1000) to avoid
> any
> >> integer nonsense and make sure to reset your axis limits.
> >>
> >>
> >>
> >> Posting a small code snippet would help us get you on the right track.
> >>
> >> -p
> >>
> >>
> >>
> >> From: Waléria Antunes David [mailto:waleriantu...@gmail.com]
> >> Sent: Monday, July 26, 2010 9:32 AM
> >> To: Matthieu Brucher
> >> Cc: matplotlib-users@lists.sourceforge.net
> >> Subject: Re: [Matplotlib-users] Hz to KHz
> >>
> >>
> >>
> >> I know...I tried but I'm using django and also when divided by 1000 the
> >> image does not appear...
> >> I don't know what to do.help me
> >>
> >> On Mon, Jul 26, 2010 at 1:27 PM, Matthieu Brucher
> >>  wrote:
> >>
> >> Hi,
> >>
> >> You may just divide them by 1000?
> >>
> >> Matthieu
> >>
> >> 2010/7/26 Waléria Antunes David :
> >>
> >> > Hello all,
> >> >
> >> > I need to format the values of graphic to KHz.my values are in Hz
> >> > see at idle python it displays the values as: 3000 3050 3100  3400
> ,
> >> > but
> >> > I need to go where it will be displayed KHz:  3.0 3.1
> >> >
> >> > can someone help me?
> >>
> >> >
> >> >
> --
> >> > The Palm PDK Hot Apps Program offers developers who use the
> >> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> >> > of $1 Million in cash or HP Products. Visit us here for more details:
> >> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> >> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> >> > ___
> >> > Matplotlib-users mailing list
> >> > Matplotlib-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Information System Engineer, Ph.D.
> >> Blog: http://matt.eifelle.com
> >> LinkedIn: http://www.linkedin.com/in/matthieubrucher
> >>
> >>
> >
> >
> --
> > The Palm PDK Hot Apps Program offers developers who use the
> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> > of $1 Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
>
>
> --
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
My code like this in django: http://pastebin.com/nzM5jvuc

i'm lost

On Mon, Jul 26, 2010 at 1:42 PM,  wrote:

>  Make sure that you’re dividing by 1000.0 (as opposed to 1000) to avoid
> any integer nonsense and make sure to reset your axis limits.
>
>
>
> Posting a small code snippet would help us get you on the right track.
>
> -p
>
>
>
> *From:* Waléria Antunes David [mailto:waleriantu...@gmail.com]
> *Sent:* Monday, July 26, 2010 9:32 AM
> *To:* Matthieu Brucher
> *Cc:* matplotlib-users@lists.sourceforge.net
> *Subject:* Re: [Matplotlib-users] Hz to KHz
>
>
>
> I know...I tried but I'm using django and also when divided by 1000 the
> image does not appear...
> I don't know what to do.help me
>
> On Mon, Jul 26, 2010 at 1:27 PM, Matthieu Brucher <
> matthieu.bruc...@gmail.com> wrote:
>
> Hi,
>
> You may just divide them by 1000?
>
> Matthieu
>
> 2010/7/26 Waléria Antunes David :
>
> > Hello all,
> >
> > I need to format the values of graphic to KHz.my values are in Hz
> > see at idle python it displays the values as: 3000 3050 3100  3400 ,
> but
> > I need to go where it will be displayed KHz:  3.0 3.1
> >
> > can someone help me?
>
> >
> --
> > The Palm PDK Hot Apps Program offers developers who use the
> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> > of $1 Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
>
>
> --
> Information System Engineer, Ph.D.
> Blog: http://matt.eifelle.com
> LinkedIn: http://www.linkedin.com/in/matthieubrucher
>
>
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
I know...I tried but I'm using django and also when divided by 1000 the
image does not appear...
I don't know what to do.help me

On Mon, Jul 26, 2010 at 1:27 PM, Matthieu Brucher <
matthieu.bruc...@gmail.com> wrote:

> Hi,
>
> You may just divide them by 1000?
>
> Matthieu
>
> 2010/7/26 Waléria Antunes David :
> > Hello all,
> >
> > I need to format the values of graphic to KHz.my values are in Hz
> > see at idle python it displays the values as: 3000 3050 3100  3400 ,
> but
> > I need to go where it will be displayed KHz:  3.0 3.1
> >
> > can someone help me?
> >
> --
> > The Palm PDK Hot Apps Program offers developers who use the
> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> > of $1 Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
>
>
> --
> Information System Engineer, Ph.D.
> Blog: http://matt.eifelle.com
> LinkedIn: http://www.linkedin.com/in/matthieubrucher
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
Hello all,

I need to format the values of graphic to KHz.my values are in Hz
see at idle python it displays the values as: 3000 3050 3100  3400 , but
I need to go where it will be displayed KHz:  3.0 3.1

can someone help me?
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 37

2010-07-26 Thread Waléria Antunes David
Hello all,

I need to format the values of graphic to KHz.my values are in Hz
see at idle python it displays the values as: 3000 3050 3100  3400 , but
I need to go where it will be displayed KHz:  3.0 3.1

can someone help me?



On Thu, Jul 15, 2010 at 10:48 AM, <
matplotlib-users-requ...@lists.sourceforge.net> wrote:

> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. scientific notation (Wal?ria Antunes David)
>
>
> --
>
> Message: 1
> Date: Thu, 15 Jul 2010 10:41:52 -0300
> From: Wal?ria Antunes David 
> Subject: [Matplotlib-users] scientific notation
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
> I have a code base so that:
>
>
> from pylab import *
> x = arange (3000,3400)
> y = -108 * (3.0e14 ** 2)/x**2
>
> pylab..title("Teste")
> pylab.savefig("imagem.png")
> plot(x, y)
>
>
> Well the values of the function range(3000,3400) are in Hz..i need
> to pass GHz which would be in scientific notation as follows bellow:
>
> 3000 Hz = 3,0 ? 10-6 GHz
> 3400 Hz = 3,4 x 10-6 Ghz
>
> How do I make the graph x-axis is shown in figures
> scientific notation, for this currently so
>
> 3000,3050,3100,,3400
>
> in scientific notation is: (3.0e-6,  3.4e-6)
>
> Can someone help me?
>
> See my attachment
>
> I need to show this values in scientific notation..
>
> Wal?ria
> -- next part --
> An HTML attachment was scrubbed...
> -- next part --
> A non-text attachment was scrubbed...
> Name: current_image.jpg
> Type: image/jpeg
> Size: 35656 bytes
> Desc: not available
>
> --
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
> --
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> End of Matplotlib-users Digest, Vol 50, Issue 37
> 
>
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 37

2010-07-21 Thread Waléria Antunes David
Hello...

I'm trying to use this to format the numbers (3000,3400) of the x axis,
however when i do in the ILDE Python it's work.but if i do using Django
as bellow the image doesn't appearlook

IDLE Python: http://pastebin.com/q7FnHhPw

Using Django: http://pastebin.com/GrcMP9iA

Help meplease...

On Thu, Jul 15, 2010 at 10:48 AM, <
matplotlib-users-requ...@lists.sourceforge.net> wrote:

> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. scientific notation (Wal?ria Antunes David)
>
>
> --
>
> Message: 1
> Date: Thu, 15 Jul 2010 10:41:52 -0300
> From: Wal?ria Antunes David 
> Subject: [Matplotlib-users] scientific notation
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
> I have a code base so that:
>
>
> from pylab import *
> x = arange (3000,3400)
> y = -108 * (3.0e14 ** 2)/x**2
>
> pylab..title("Teste")
> pylab.savefig("imagem.png")
> plot(x, y)
>
>
> Well the values of the function range(3000,3400) are in Hz..i need
> to pass GHz which would be in scientific notation as follows bellow:
>
> 3000 Hz = 3,0 ? 10-6 GHz
> 3400 Hz = 3,4 x 10-6 Ghz
>
> How do I make the graph x-axis is shown in figures
> scientific notation, for this currently so
>
> 3000,3050,3100,,3400
>
> in scientific notation is: (3.0e-6,  3.4e-6)
>
> Can someone help me?
>
> See my attachment
>
> I need to show this values in scientific notation..
>
> Wal?ria
> -- next part --
> An HTML attachment was scrubbed...
> -- next part --
> A non-text attachment was scrubbed...
> Name: current_image.jpg
> Type: image/jpeg
> Size: 35656 bytes
> Desc: not available
>
> --
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
> --
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> End of Matplotlib-users Digest, Vol 50, Issue 37
> 
>
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] scientific notation

2010-07-16 Thread Waléria Antunes David
I forgot of the my image.

On Fri, Jul 16, 2010 at 9:10 AM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> Hi...
>
> I tried the first option, but failed see my image attached
>
> And the second option, i don't understand the variable 'val'
>
> ...?
>
>
> On Thu, Jul 15, 2010 at 3:22 PM, Ryan May  wrote:
>
>> On Thu, Jul 15, 2010 at 8:41 AM, Waléria Antunes David
>>  wrote:
>> > Hi all,
>> >
>> > I have a code base so that:
>> >
>> >
>> > from pylab import *
>> > x = arange (3000,3400)
>> > y = -108 * (3.0e14 ** 2)/x**2
>> >
>> > pylab..title("Teste")
>> > pylab.savefig("imagem.png")
>> > plot(x, y)
>> >
>> >
>> > Well the values of the function range(3000,3400) are in Hz..i
>> need
>> > to pass GHz which would be in scientific notation as follows bellow:
>> >
>> > 3000 Hz = 3,0 × 10-6 GHz
>> > 3400 Hz = 3,4 x 10-6 Ghz
>> >
>> > How do I make the graph x-axis is shown in figures
>> > scientific notation, for this currently so
>> >
>> > 3000,3050,3100,,3400
>> >
>> > in scientific notation is: (3.0e-6,  3.4e-6)
>>
>> One way is to just change the values in the GHz and plot them:
>>
>> plot(x/1e9, y)
>> # Need to change some limits so that they show up in scientific notation:
>> gca().xaxis.get_major_formatter().set_powerlimits((-5,5))
>>
>> The other way is make a custom formatter that changes the values of the
>> ticks:
>>
>> def fmt_ghz(val, pos=None):
>>return '%g' % (val / 1e9)
>>
>> plot(x, y)
>> gca().xaxis.set_major_formatter(FuncFormatter(fmt_ghz))
>>
>> You can get more information here:
>> http://matplotlib.sourceforge.net/api/ticker_api.html
>>
>> Ryan
>>
>> --
>> Ryan May
>> Graduate Research Assistant
>> School of Meteorology
>> University of Oklahoma
>>
>
>
<>--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] scientific notation

2010-07-16 Thread Waléria Antunes David
Hi...

I tried the first option, but failed see my image attached

And the second option, i don't understand the variable 'val'

...?

On Thu, Jul 15, 2010 at 3:22 PM, Ryan May  wrote:

> On Thu, Jul 15, 2010 at 8:41 AM, Waléria Antunes David
>  wrote:
> > Hi all,
> >
> > I have a code base so that:
> >
> >
> > from pylab import *
> > x = arange (3000,3400)
> > y = -108 * (3.0e14 ** 2)/x**2
> >
> > pylab..title("Teste")
> > pylab.savefig("imagem.png")
> > plot(x, y)
> >
> >
> > Well the values of the function range(3000,3400) are in Hz..i
> need
> > to pass GHz which would be in scientific notation as follows bellow:
> >
> > 3000 Hz = 3,0 × 10-6 GHz
> > 3400 Hz = 3,4 x 10-6 Ghz
> >
> > How do I make the graph x-axis is shown in figures
> > scientific notation, for this currently so
> >
> > 3000,3050,3100,,3400
> >
> > in scientific notation is: (3.0e-6,  3.4e-6)
>
> One way is to just change the values in the GHz and plot them:
>
> plot(x/1e9, y)
> # Need to change some limits so that they show up in scientific notation:
> gca().xaxis.get_major_formatter().set_powerlimits((-5,5))
>
> The other way is make a custom formatter that changes the values of the
> ticks:
>
> def fmt_ghz(val, pos=None):
>return '%g' % (val / 1e9)
>
> plot(x, y)
> gca().xaxis.set_major_formatter(FuncFormatter(fmt_ghz))
>
> You can get more information here:
> http://matplotlib.sourceforge.net/api/ticker_api.html
>
> Ryan
>
> --
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
>
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] scientific notation

2010-07-15 Thread Waléria Antunes David
But, i don't know how do...

I tried, but don't, most failed

On Thu, Jul 15, 2010 at 11:25 AM, Benjamin Root  wrote:

>
> On Thu, Jul 15, 2010 at 8:41 AM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have a code base so that:
>>
>>
>> from pylab import *
>> x = arange (3000,3400)
>> y = -108 * (3.0e14 ** 2)/x**2
>>
>> pylab..title("Teste")
>> pylab.savefig("imagem.png")
>> plot(x, y)
>>
>>
>> Well the values of the function range(3000,3400) are in Hz..i need
>> to pass GHz which would be in scientific notation as follows bellow:
>>
>> 3000 Hz = 3,0 × 10-6 GHz
>> 3400 Hz = 3,4 x 10-6 Ghz
>>
>> How do I make the graph x-axis is shown in figures
>> scientific notation, for this currently so
>>
>> 3000,3050,3100,,3400
>>
>> in scientific notation is: (3.0e-6,  3.4e-6)
>>
>> Can someone help me?
>>
>> See my attachment
>>
>> I need to show this values in scientific notation..
>>
>> Waléria
>>
>>
>>
> Waleria,
>
> I believe you are looking to use the ticker API.  Particularly the
> FormatStrFormatter that accepts a sprintf()-like format string to express
> your tick values.  For your particular example, --off the top of my head--
> the string format would be "%.1e".
>
> http://matplotlib.sourceforge.net/api/ticker_api.html
>
> I hope this helps.
>
> Ben Root
>
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] scientific notation

2010-07-15 Thread Waléria Antunes David
Hi all,

I have a code base so that:


from pylab import *
x = arange (3000,3400)
y = -108 * (3.0e14 ** 2)/x**2

pylab..title("Teste")
pylab.savefig("imagem.png")
plot(x, y)


Well the values of the function range(3000,3400) are in Hz..i need
to pass GHz which would be in scientific notation as follows bellow:

3000 Hz = 3,0 × 10-6 GHz
3400 Hz = 3,4 x 10-6 Ghz

How do I make the graph x-axis is shown in figures
scientific notation, for this currently so

3000,3050,3100,,3400

in scientific notation is: (3.0e-6,  3.4e-6)

Can someone help me?

See my attachment

I need to show this values in scientific notation..

Waléria
<>--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Question?

2010-06-09 Thread Waléria Antunes David
On 6/9/2010 9:12 AM, Wal?ria Antunes David wrote:
> Is there a way to plot my functions in the graph so that one can to
> visualize the difference between them.

Did you try the example I posted?
Why is it not adequate?

Alan Isaac


Hello,

Alan Isaac,

Sure, i tried your example, but really i don't was understanding with my
graph, what was happening to my graph. So, i talked with my boss and he
explained that was problem of scale.
I think i resolved my problem, if i get lost i write again for you.ok?

Now, i using your example, is adequate for me.

thank you very much

and sorry, i'm brazilian and i'm studying english and it is not very
good..



On Wed, Jun 9, 2010 at 10:12 AM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> Hello...
>
> Benjamin,
>
> I made a correction in my functions, i added parentheses for the
> denominator in the functions, saw the images in the attached:
>
> two_functions.jpg
> result in graph = images_.png
> output values = values of the first function and values of the second
> function
>
> Is there a way to plot my functions in the graph so that one can to
> visualize the difference between them.
>
> This is correct my functions?
>
>
>
> On Tue, Jun 8, 2010 at 4:35 PM, Benjamin Root  wrote:
>
>> Waléria,
>>
>> I repeat, you need to add parentheses for the denominator of that quantity
>> in order to match what you wrote out on paper.  You are missing a set of
>> parentheses that is causing (3e14**2) to be *multiplied* rather than
>> divided.  This explains the huge values you are getting.
>>
>> Ben Root
>>
>>
>> On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David <
>> waleriantu...@gmail.com> wrote:
>>
>>> no, I think, did not understand my functions.seei made a change
>>> my second function in the attached.
>>>
>>>
>>> On Tue, Jun 8, 2010 at 3:48 PM, Benjamin Root  wrote:
>>>
>>>> I think I found your errors.
>>>>
>>>> First, you are correct, the scientific notation in python is as you
>>>> understand, there is nothing wrong with that.
>>>>
>>>> Instead, you have a problem with order of operations.  In the last
>>>> quantity, you have "((x**2)/4*(1e4**2)*(3e14**2))"
>>>> According to the equation that you wrote out in the attached image, you
>>>> need: "((x**2)/*(*4*(*2*e4**2)*(3e14**2))*)*"
>>>> Note that you needed parentheses for the entire denominator.  Also, the
>>>> 1e4**2 should have been 2e4**2.
>>>>
>>>> This gives me values between 4.3125e-48 and 5.5359e-48.
>>>>
>>>> Ben Root
>>>>
>>>> On Tue, Jun 8, 2010 at 12:47 PM, Waléria Antunes David <
>>>> waleriantu...@gmail.com> wrote:
>>>>
>>>>> I understand what you are saying, but my functions are these, attached.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Scientific notation in Python is not so?
>>>>>
>>>>> *Math *  *Python*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Pinc = 10-6  Pinc = 1e-6
>>>>>
>>>>> 3,0x10143e14
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ?
>>>>>
>>>>>
>>>>> Then, changing my functions of the images attached for python is as 
>>>>> bellow:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> y1 = -108*(x**2)/(3e14**2)
>>>>>
>>>>> y2 = 1*((1.38e-23*(1e0+4)/1e-6)*((x**2)/4*(1e4**2)*(3e14**2
>>>>>
>>>>> Is not it?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jun 8, 2010 at 1:34 PM, Gökhan Sever wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David <
>>>>>> waleriantu...@gmail.com> wrote:
>>>>>>
>>>>>>>  Hello!!!
>>>>>>>
>>>>>>