Re: [matplotlib-devel] Contributed example

2011-07-11 Thread Nicolas Rougier

Another one about radar chart:

http://www.loria.fr/~rougier/tmp/radar-chart.png

http://www.loria.fr/~rougier/tmp/radar-chart.py


Nicolas



On Jul 9, 2011, at 4:30 PM, Nicolas Rougier wrote:

> 
> Thanks.
> 
> Here is another try inspired from:
> http://www.nytimes.com/imagepages/2007/07/29/health/29cancer.graph.web.html
> 
> Results
> http://www.loria.fr/~rougier/tmp/diseases.png
> 
> 
> By the way, the matplotlib gallery (from the website) is incredibly useful 
> when you need to know how to do something quickly, but the lack of 
> organization in the different figures make search sometimes difficult. Maybe 
> a rough structure (1D/2D/3D, plot/bars/imshow ...) in the examples could be 
> even more useful as well as carefully choosing relevant examples (for 
> example, the filledmarker_demo produces 12 figures that are more or less the 
> same) ?
> 
> 
> 
> Nicolas
> 
> 
> Here is the script:
> 
> 
> 
> 
> 
> On Jul 9, 2011, at 8:45 AM, Chris Petrich wrote:
> 
>> I agree, very instructional example.
>> As for the width of the tick lines, line 78
>>   line.set_linewidth(1)
>> should probably read
>>   line.set_markeredgewidth(1)
>> though.
>> 
>> Chris
>> 
>>> Date: Fri, 8 Jul 2011 16:18:52 -0600
>>> From: G?khan Sever 
>>> Subject: Re: [matplotlib-devel] Contributed example
>>> To: Nicolas Rougier 
>>> Cc: matplotlib development list
>>>   
>>> Message-ID:
>>>   
>>> Content-Type: text/plain; charset="utf-8"
>>> 
>>> I think this illustration deserves its places amongst the mpl gallery
>>> --probably somewhere towards the very beginning.
>>> 
>>> Thanks for the well documented code Nicolas.
>>> On Fri, Jul 8, 2011 at 2:09 AM, Nicolas Rougier 
>>> wrote:
>>> 
 
 
 Hi,
 
 
 I've been playing with matplotlib to check if it can produce graphics like:
 
 
 http://www.thebuzzmedia.com/wp-content/uploads/2010/03/anandtech-nvidia-geforce-480-ati-benchmark2.png
 
 
 Here is the result:
 http://www.loria.fr/~rougier/tmp/benchmark.png
 
 and the script (as attachment)
 
 I do not know if it's worth adding it to examples ?
 
 
 
 Nicolas
 
 
 
 
 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 Matplotlib-devel mailing list
 Matplotlib-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
 
 
>>> 
>>> 
>>> --
>>> G?khan
>>> -- next part --
>>> An HTML attachment was scrubbed...
>>> 
>>> --
>>> 
>>> --
>>> All of the data generated in your IT infrastructure is seriously valuable.
>>> Why? It contains a definitive record of application performance, security
>>> threats, fraudulent activity, and more. Splunk takes this data and makes
>>> sense of it. IT sense. And common sense.
>>> http://p.sf.net/sfu/splunk-d2d-c2
>>> 
>>> --
>>> 
>>> ___
>>> Matplotlib-devel mailing list
>>> Matplotlib-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>> 
>>> 
>>> End of Matplotlib-devel Digest, Vol 62, Issue 3
>>> ***
> 
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Contributed example

2011-07-11 Thread Nicolas Rougier


And the last one:

http://www.loria.fr/~rougier/tmp/circle.png

http://www.loria.fr/~rougier/tmp/circle.py


showing some precise text manipulation (but it is quite slow to display because 
of the interactive mode. I do not know if it can be made faster).


Nicolas



On Jul 11, 2011, at 9:33 AM, Nicolas Rougier wrote:

> 
> Another one about radar chart:
> 
> http://www.loria.fr/~rougier/tmp/radar-chart.png
> 
> http://www.loria.fr/~rougier/tmp/radar-chart.py
> 
> 
> Nicolas
> 
> 
> 
> On Jul 9, 2011, at 4:30 PM, Nicolas Rougier wrote:
> 
>> 
>> Thanks.
>> 
>> Here is another try inspired from:
>> http://www.nytimes.com/imagepages/2007/07/29/health/29cancer.graph.web.html
>> 
>> Results
>> http://www.loria.fr/~rougier/tmp/diseases.png
>> 
>> 
>> By the way, the matplotlib gallery (from the website) is incredibly useful 
>> when you need to know how to do something quickly, but the lack of 
>> organization in the different figures make search sometimes difficult. Maybe 
>> a rough structure (1D/2D/3D, plot/bars/imshow ...) in the examples could be 
>> even more useful as well as carefully choosing relevant examples (for 
>> example, the filledmarker_demo produces 12 figures that are more or less the 
>> same) ?
>> 
>> 
>> 
>> Nicolas
>> 
>> 
>> Here is the script:
>> 
>> 
>> 
>> 
>> 
>> On Jul 9, 2011, at 8:45 AM, Chris Petrich wrote:
>> 
>>> I agree, very instructional example.
>>> As for the width of the tick lines, line 78
>>>  line.set_linewidth(1)
>>> should probably read
>>>  line.set_markeredgewidth(1)
>>> though.
>>> 
>>> Chris
>>> 
 Date: Fri, 8 Jul 2011 16:18:52 -0600
 From: G?khan Sever 
 Subject: Re: [matplotlib-devel] Contributed example
 To: Nicolas Rougier 
 Cc: matplotlib development list
  
 Message-ID:
  
 Content-Type: text/plain; charset="utf-8"
 
 I think this illustration deserves its places amongst the mpl gallery
 --probably somewhere towards the very beginning.
 
 Thanks for the well documented code Nicolas.
 On Fri, Jul 8, 2011 at 2:09 AM, Nicolas Rougier 
 wrote:
 
> 
> 
> Hi,
> 
> 
> I've been playing with matplotlib to check if it can produce graphics 
> like:
> 
> 
> http://www.thebuzzmedia.com/wp-content/uploads/2010/03/anandtech-nvidia-geforce-480-ati-benchmark2.png
> 
> 
> Here is the result:
> http://www.loria.fr/~rougier/tmp/benchmark.png
> 
> and the script (as attachment)
> 
> I do not know if it's worth adding it to examples ?
> 
> 
> 
> Nicolas
> 
> 
> 
> 
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
 
 
 --
 G?khan
 -- next part --
 An HTML attachment was scrubbed...
 
 --
 
 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 
 --
 
 ___
 Matplotlib-devel mailing list
 Matplotlib-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
 
 
 End of Matplotlib-devel Digest, Vol 62, Issue 3
 ***
>> 
>> --
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security 
>> threats, fraudulent activity, and more. Splunk takes this data and makes 
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2___
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performan

Re: [matplotlib-devel] Proposal for Broken Axes

2011-07-11 Thread ayuffa

Have your changes to axes.py, namely breakx and breaky, been accepted?  If
not, could you post your axes.py file.
Thanks in advance,
yuffa


klukas wrote:
> 
> I have implemented breakx and breaky methods for the Axes class and
> attached the diff for axes.py to this message.
> 
> You can test out the function with the following examples:
> --
> import numpy as np
> import matplotlib as mpl
> import matplotlib.pyplot as plt
> 
> # Broken y
> fig = plt.figure()
> main_axes = plt.axes()
> plt.title('Broken x-axis example')
> plt.xlabel('x-axis label')
> subaxes = main_axes.breaky([0., 1.9, 5.1, 6.9, 9.1, 12])
> for axes in subaxes:
> axes.plot(np.linspace(0,12,13),np.linspace(0,12,13))
> plt.ylabel('y-axis label')
> plt.show()
> 
> --
> import numpy as np
> import matplotlib as mpl
> import matplotlib.pyplot as plt
> # Broken x
> fig = plt.figure()
> main_axes = plt.axes()
> plt.title('Broken x-axis example')
> plt.ylabel('y-axis label')
> subaxes = main_axes.breakx([0., 1.9, 5.1, 6.9, 9.1, 12])
> for axes in subaxes:
> axes.plot(np.linspace(0,12,13),np.linspace(0,12,13))
> plt.xlabel('x-axis label')
> plt.show()
> -
> 
> I've included in the docstrings some of the TODO items, but this is
> pretty stable in its current form.
> 
> Cheers,
> Jeff
> 
> || Jeff Klukas, Research Assistant, Physics
> || University of Wisconsin -- Madison
> || jeff.klukas@gmail | jeffyklukas@aim | jeffklukas@skype
> || http://www.hep.wisc.edu/~jklukas/
> 
> 
> On Tue, Mar 16, 2010 at 1:08 PM, Jeff Klukas  wrote:
>>> What would be great is if you could refactor the basic functionality
>>> into a matplotlib.Axes.breaky method (and possibly breakx but most
>>> people request a broken y axis), which would resize the "self" axes
>>> and return the broken compliment which could be plotted onto.  Then
>>> you could provide a thin pyplot wrapper much like pyplot.twinx, so
>>> that pyplot as well as API users could benefit.
>>
>> I can try to do this.  I think I would prefer, however, not to resize
>> the "self" axes and continue with my current approach of creating two
>> new axes within the original axes.  On the user end, I think it makes
>> more sense to set the title and ylabel of the main axes, rather than
>> setting them for the individual upper and lower axes.  More on that
>> below.
>>
 The only real problems here is that you need to
 explicitly plot things on both the upper and lower axes, and then I
 haven't
 figured out how to push out the y-axis label of the main axes object so
 it
 doesn't overlap with the tick labels of the upper and lower axes.  So,
 I
 instead moved the y-labels of the upper and lower axes so that they
 appear
 at the center of the axis, but this is problematic.  Any thoughts on
 how to
 do that part better?
>>>
>>> klukas, I'm afraid I don't understand your issue... Can you explain
>>> using it differently?
>>
>> In my approach, you end up with a main axes object that is invisible,
>> and then two visible axes objects (upper and lower) within the main
>> axes.  I would ideally like to have the y label display in the middle
>> of the main y-axis, independent of where the break lies.  If I place a
>> y label on the main axes (which has ticks or tick labels), though, it
>> appears right up against the axis line.  I'd like it to be placed
>> further to the left, clear of the tick labels that appear on the upper
>> and lower axes.  So, I'd like to be able to access whatever algorithm
>> is used to choose the offset of the axis label, and explicitly set the
>> offset of the ylabel for the main axes so that it clears the tick
>> labels.
>>
>> // Jeff
>>
> 
>  
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Proposal-for-Broken-Axes-tp27909750p32016821.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotl

Re: [matplotlib-devel] Proposal for Broken Axes

2011-07-11 Thread Paul Ivanov
ayuffa, on 2011-07-07 13:54,  wrote:
> Have your changes to axes.py, namely breakx and breaky, been accepted?  If
> not, could you post your axes.py file.

Here's an example, I'm looking into why it's not making it to the
official docs right now, but you should be able to run it
locally:

https://github.com/matplotlib/matplotlib/blob/master/examples/pylab_examples/broken_axis.py

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 


signature.asc
Description: Digital signature
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel