Re: [matplotlib-devel] example data in example code

2009-08-04 Thread Josh Hemann

So, I just downloaded 0.99 rc1 and wanted to play with axesgrid examples and
got the results you reported below in your example. I am in fact naive, and
its not clear to me how to get around this problem of the demo_image module
not being found. What is the solution? 

Thanks,

Josh



John Hunter-4 wrote:
> 
> In some examples, I have been moving example functions and data into a
> module, so that they can be run from anywhere.  Many other examples
> still rely on a relative path in the examples dir.   Eg, I go to the
> gallery and download the source for the axes grid toolkit example
> simple_rgb.py, and try to run it from my desktop, I get the error "no
> module names demo_image".  While I know how to get the data, a naive
> user will not.  So in some examples I have been adopting the approach,
> eg in examples/pylab_examples/scatter_demo2.py
> 
>   import matplotlib
>   datafile = matplotlib.get_example_data('goog.npy')
> 
> These examples will run anywhere mpl is installed.  Another approach
> would to write a version of get_example_data that checks locally for a
> datafile, and if it is not where you expect to be, attempt a
> urlretrieve as a temp file.
> 
> The gallery is becoming the goto place for most users of the website,
> and I would like as many examples as possible to run after a simple
> download to the desktop .  I am sensitive to packagers who may not
> want to ship large amounts of data w/ the main library, so we may want
> to minimize the amount we ship in mpl-data which
> matplotlib.get_example_data uses, but it may be a good idea to setup a
> new svn directory at the top level (mpl_data) and write a urllib
> enabled matplotlib.get_example_data that fetches it from the repo if
> it can't find it locally.
> 
> JDH
> 


-
Josh Hemann
Statistical Advisor 
http://www.vni.com/ Visual Numerics 
[email protected] | P 720.407.4214 | F 720.407.4199 

-- 
View this message in context: 
http://www.nabble.com/example-data-in-example-code-tp24760754p24811726.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] binary installers for python2.6; libpng segfault, MSVCR90.DLL and mingw

2009-08-12 Thread Josh Hemann

I am new to trying to build matplotlib from svn and believe I am up against
the issue described in this thread. That is, building matplotlib on Python
2.6.2/Windows, compiling/linking with MinGW seem to go fine but upon trying
to   

 from pylab import * 

 I get

 
 (lots of traceback that culminates below)
 
 C:\Python262\lib\site-packages\matplotlib\image.py in ()
19 # For clarity, names from _image are given explicitly in this
module:

20 import matplotlib._image as _image
 ---> 21 import matplotlib._png as _png
22
23 # For user convenience, the names from _image are also imported
into

ImportError: DLL load failed: The specified procedure could not be
found. )

even though matplotlib\_png.pyd exists.

I am wondering if there has been any progress on this front? 

I found  http://www.nabble.com/Python-2.6.2-installation--td23996471.html
this thread 
which suggests using Visual Studio 2008 (VS9) instead of MinGW, but that was
for 0.98.5.3.  I installed VS9 and followed the instructions in that thread
but now when I try to import pylab Visual Studio's Just-In-Time Debugger
pops up telling me I have an unhandled win32 exception in python.exe

Can anyone comment on a verified way of building the latest matplotlib on
Windows/Python 2.6.2? I keep going down dead ends and would like to figure
out if its me or if I have just been down now-known bad paths.

Thanks,

Josh
 


-----
Josh Hemann
Statistical Advisor 
http://www.vni.com/ Visual Numerics 
[email protected] | P 720.407.4214 | F 720.407.4199 

-- 
View this message in context: 
http://www.nabble.com/binary-installers-for-python2.6--libpng-segfault%2C-MSVCR90.DLL-and-%09mingw-tp23971661p24943445.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Another Gallery example?

2010-04-05 Thread Josh Hemann

I have another Gallery example that I'd like to post if anyone finds it
worthy. It is just a polished version of the scatter_hist example at
http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_hist.html

See the most recent graphic on this thread:
http://old.nabble.com/How-to-overlay-an-image-on-a-multi-plot--td28111498.html

I have contributed a few gallery examples in the past

http://matplotlib.sourceforge.net/examples/api/radar_chart.html
http://matplotlib.sourceforge.net/examples/pylab_examples/barchart_demo2.html
http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo2.html

and I am just trying to (slowly) help with getting publication quality
graphics into the gallery, a la R's gallery at
http://addictedtor.free.fr/graphiques/thumbs.php (matplotlib looks s
much better).

By "publication quality" I just mean graphics that have legends, axes
labels, specified axes ranges etc, so that in one example people see a lot
of the functionality they'll likely use a lot.

If anyone is interested, I can take my code and generalize it with fake data
and axes labels, add some comments, etc.

Cheers,

Josh

-
Josh Hemann
Statistical Advisor 
http://www.vni.com/ Visual Numerics 
jhemann at vni dizzot com 

-- 
View this message in context: 
http://old.nabble.com/Another-Gallery-example--tp28145163p28145163.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] improved source code for radar chart example in matplotlib docs

2011-06-21 Thread Josh Hemann

Hi Dan,

Is 
http://matplotlib.sourceforge.net/examples/api/radar_chart.html?highlight=radar
this the example  you are referring to? If so, this is the one I submitted
to the gallery a couple of years ago and I would be happy to see the
underlying methodology improved.

Josh

texas_ranger wrote:
> 
> Hello dev people,
> 
> I had an app where I needed the radar chart (aka Kiviat diagrams) source
> code out of matplotlib. Turns out the example source code is very limited
> the way it is currently written. Not good.
> 
> I re-wrote parts of the source code to make it much more flexible and
> easier
> to include in an app. For example, if run in stand-alone mode, the user
> can
> specify upto 25 different radar charts in one window. Titles and labels
> are
> much more general as well. The legend can have multiple columns, etc.
> 
> If anyone is interested, I will be happy to send you my source code,
> hoping
> you might consider replacing the current version in the docs with the one
> I'll send.
> 
> Just reply and I'll send the code. You can decide from there whether to
> use
> it to replace current version.
> 
> I did not want to attach the code if no one is interested.
> 
> Daniel Barnette
> 
> --
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 


-
Josh Hemann
Group Manager - Advanced Analytics 
Sports Authority
jhemann at sportsauthority com 

-- 
View this message in context: 
http://old.nabble.com/improved-source-code-for-radar-chart-example-in-matplotlib-docs-tp31351398p31894586.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [Python-modules-team] Bug#608932: python-matplotlib-doc: "Exception occurred rendering plot"

2011-06-21 Thread Josh Hemann
rtist_tests.html
> examples/units/basic_units.html
> users/annotations_guide.html
> users/screenshots.html
> 
> But I have some problems debugging these issues, since when I run the
> code by-hand, it works fine but in the html file it's not shown. How
> can I debug that? in the log there's nothing about these problems (but
> other error, I'll follow them up in another mail).
> 
> Thanks in advance,
> -- 
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi
> 
> --
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand 
> malware threats, the impact they can have on your business, and how you 
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 


-
Josh Hemann
Group Manager - Advanced Analytics 
Sports Authority
jhemann at sportsauthority com 

-- 
View this message in context: 
http://old.nabble.com/Re%3A--Python-modules-team--Bug-608932%3A-python-matplotlib-doc%3A-%22Exception-occurred-rendering-plot%22-tp30695603p31894837.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel