[Matplotlib-users] ticks label to the right side

2008-06-12 Thread Fabrice Silva
Hi folks
Using version 0.91.2, I do not manage to push ticks labels to the right
side of the axis, keeping ticks lines on both sides. How can I do it ?

Another question : 
I have two subplot "in-line" (121 and 122) sharing the same yaxis.
How would you set a single set of yticks labels displayed between the
axes ?
-- 
Fabrice Silva <[EMAIL PROTECTED]>
LMA UPR CNRS 7051 - équipe S2M


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] bounding box functionality with text() function

2008-06-12 Thread Michael Droettboom
If you can find a way to create a minimal script, that would be better, 
because then we can verify the fix.

But barring anything else, seeing the .eps might help.

Cheers,
Mike

Michael Hearne wrote:
> John - Thanks for the quick fix.  I'm having a separate issue now with 
> an EPS file being generated (using savefig() again) that appears to be 
> invalid (can't display it in OS X Preview, or convert to PDF with 
> ps2pdf).  Unfortunately, the code that creates this particular file is 
> rather involved, and hard to replicate with one simple script.
>
> If I send the offending EPS file (it's 1.4 MB zipped), is it possible to 
> tell from that what the problem is?
>
> The errors from ps2pdf are:
> Error: /undefined in --get--
> Operand stack:
>true   --dict:43/43(ro)(L)--   .notdef
> Execution stack:
>%interp_exit   .runexec2   --nostringval--   --nostringval--   
> --nostringval--   2   %stopped_push   --nostringval--   
> --nostringval--   --nostringval--   false   1   %stopped_push   1905   
> 1   3   %oparray_pop   1904   1   3   %oparray_pop   --nostringval--   
> 1888   1   3   %oparray_pop   1771   1   3   %oparray_pop   
> --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
> --nostringval--   --nostringval--   2   %stopped_push   
> --nostringval--   %finish_show   --nostringval--   --nostringval--   5   
> 4   0   --nostringval--   (pdf_text_enum_t)   %op_show_continue   
> --nostringval--
> Dictionary stack:
>--dict:1144/1684(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   
> --dict:61/112(L)--   --dict:20/25(ro)(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 996122
> GPL Ghostscript 8.61: Unrecoverable error, exit code 1
>
> --Mike
>
> John Hunter wrote:
>   
>> On Wed, Jun 11, 2008 at 10:14 AM, John Hunter <[EMAIL PROTECTED]> wrote:
>>
>>   
>> 
>>> Interesting.  When I plot it on my screen it looks correct with a *Agg
>>> GUI backend.  But when I save it (either from the GUI or using
>>> savefig) it has the problem you describe.  This suggests to me that
>>> either some cached information or something is not getting notified of
>>> the different default dpi in savefig.  I'll look into it.  Since PS is
>>> dpi independent, it would not affect it.
>>> 
>>>   
>> Well, my diagnosis wasn't correct, but I fixed the problem.  In the
>> caching of the text layout, we were not taking into account the
>> different renderers in the cache key.  Since PS has a nominal dpi
>> setting that is ignored by postscript, the differences in dpi were not
>> getting picked up in the layout cache.  The solution I implemented was
>> to simply add the renderer id to the property tuple used for caching.
>> Fixed in svn r5470.
>>
>> JDH
>>   
>> 
>
>   

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


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread Dan Murphy

I tried to follow the directions per
% python setup.py build
% python setup.py install
but within the build step I get the message
"library not found for -lpng"
It exits with an error code, and then install does not work either (no  
surprise).


I also tried easy_install. It says that I have numpy 1.0.1 but need  
numpy 1.1, which I have and which works. So I downloaded numpy 1.1  
again and successfully installed it (again), but easy_install gives me  
the same message.


I have wxpython installed, and it works, but don't know if that's  
related to my problems.


I'm also a newbie to the mac, and am having trouble deciphering some  
of the posts with similar issues.


Thanks for whatever help you can provide.

Dan
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread John Hunter
On Thu, Jun 12, 2008 at 1:11 AM, Dan Murphy <[EMAIL PROTECTED]> wrote:
> I tried to follow the directions per
>
> % python setup.py build
> % python setup.py install

Could you try the instructions at:

http://ipython.scipy.org/moin/Py4Science/InstallationOSX

and let us know how it goes?

Thanks,
JDH

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread Christopher Barker
John Hunter wrote:
> Could you try the instructions at:
> 
> http://ipython.scipy.org/moin/Py4Science/InstallationOSX

note that these only work on OS-X 10.5 (which was the OP's question).

However, the key issue is if you are building it just for yourself, or 
if you want to be able to re-distribute either your build or 
applications built from it via py2app, etc.

If the latter, you want Charlie Moad's page:

http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes

However, it really is a lot easier to just install the binary egg found 
here:

http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=603020

It's called:

matplotlib-0.98.0-py2.5-macosx-10.3.egg

the "10.3" means "10.3 or greater".

you may need to re-name it:

matplotlib-0.98.0-py2.5.egg

then:

$ easy_install matplotlib-0.98.0-py2.5.egg

(I may not have the re-naming right, I'm not running 10.5 to test.)

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread Christopher Barker
John Hunter wrote:
> Could you try the instructions at:
> 
> http://ipython.scipy.org/moin/Py4Science/InstallationOSX

Minor note on that:

"""
I installed
wxPython2.8-osx-unicode-2.8.3.0-universal10.4-py2.5.dmg from the 
pythonmac site and am crossing my fingers that I don't find myself 
entangled in wx version hell.
"""

recent version of the wx back-end no longer rely on compiled code, so wx 
version hell is a think of the past (you will get better performance 
with wx 2.8+, though).

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] CocoaAgg backend seems to be broken

2008-06-12 Thread İsmail Dönmez
Hi all,

I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca
backend seems to be broken :

Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy import lena
>>> import matplotlib
>>> matplotlib.use("CocoaAgg")
>>> import pylab
>>> pylab.imshow(lena())

>>> pylab.show()
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 46, in show
manager.show()
  File 
"/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 205, in show
NSApplication.sharedApplication().run()
  File 
"/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 181, in startWithBundle_
if not bundle.loadNibFile_externalNameTable_withZone_('Matplotlib.nib',
{}, None):
  File 
"/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 88, in awakeFromNib
self.plotView.windowDidResize_(self)
  File 
"/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 137, in windowDidResize_
dpi = self.canvas.figure.dpi.get()
AttributeError: 'int' object has no attribute 'get'
>>>

Any ideas?

Regards,
ismail



-- 
Never learn by your mistakes, if you do you may never dare to try again.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] CocoaAgg backend seems to be broken

2008-06-12 Thread John Hunter
On Thu, Jun 12, 2008 at 2:58 PM, İsmail Dönmez <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca
> backend seems to be broken :

Charlie,

any chance you can try and port cocoaagg over to the new trunk api.
figure.dpi is no longer a lazy value, but a plain ol number.  There
are probably a few other changes that will need to be made as well.
I'd like to clear up as many of these problems as we can and shoot for
a bugfix release next week.

JDH
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] No plots show after update

2008-06-12 Thread John Hunter
On Thu, Jun 12, 2008 at 4:19 PM, T J <[EMAIL PROTECTED]> wrote:
> I just updated my version of matplotlib to r5496, and now when I type
> show(), nothing happens.  What could have gone wrong? Sorry if this is
> simple.  I've attached a log of the installation.

Try

  > rm -rf build
  > rm -rf /path/to/site-packages/matplotlib*
  > svn up
  > python setup.py install > build.out
  > python examples/pylab_examples/simple_plot.py --verbose-debug > run.out

and post build.out and run.out.

Also, please post svn problems to the matplotlib-devel list

http://lists.sourceforge.net/mailman/listinfo/matplotlib-devel

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Consist Symbols/Sizes between Plot/Scatter

2008-06-12 Thread T J
I am making a scatter plot and want the legend to display the symbols.
 This functionality doesn't seem to exist, so I have followed the
workaround outlined here:

http://www.nabble.com/Legend-for-a-scatter-plot-based-on-symbols-td17554839.html#a17554839

Are there any plans to make the symbols which are available in plot()
the same as those available for scatter()?  If not, can we at least
get the diamond symbol the same?  I want to pass the same symbol to
plot() and scatter() and get the same symbol---as it is, I must use
'd' in scatter and 'D' in plot.

Also, how are the markersizes scaled? For example, in scatter(), I am
using s=30...but if I do plot(...,markersize=30), then the markers are
not the same size as the markers from the scatter plot.  I can go back
and forth until the scale is right, but is there a better way?

Thanks.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] backend_wx and 0.98.0

2008-06-12 Thread James A. Benson

   My app uses the wx backend, so I happened to notice
that the backend_wx doesn't seem to work with
matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py
shows the problem. Only a bit of the lines get plotted. The
pan up/down zoom in/out all show various error messages.
When i revert back to 0.91.3 and run the same 0.91 example
it works fine.

  Not a big deal for me (perhaps the only person still using
the wx backend), i'm in the process of switching my app to qt4
and the embedding_in_qt4.py example works fine in 0.98.

Jim


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users