Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Simson Garfinkel

On Mar 21, 2008, at 6:12 AM, Michael Droettboom wrote:
> I vaguely recall a bug whereby mathtext on PDF was upside down  
> (because the direction of the y-axis was not being inverted)... but  
> I can't find the bug report.
>
> It does seem to work in 0.90.1 and 0.91.2 (on Linux at least).  Are  
> you able to upgrade?


Hm.

On my Linux box, Well, easy_install should upgrade me to 91.2, but  
won't build because ft2build.h is missing...?  Apparently that's part  
of freetype v2, which I have installed...

On my Mac, easy_install says that matplotlib 0.87.7 is the active  
version and the best version.

I guess I can't easy install...



02:46 PM t:/home/simsong# easy_install matplotlib
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading 
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Best match: matplotlib 0.91.2
Downloading 
http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.2.tar.gz?modtime=1199627250&big_mirror=0
Processing matplotlib-0.91.2.tar.gz
Running matplotlib-0.91.2/setup.py -q bdist_egg --dist-dir /tmp/ 
easy_install-YMu8YK/matplotlib-0.91.2/egg-dist-tmp-AOR3hR
= 
= 
= 
= 

BUILDING MATPLOTLIB
 matplotlib: 0.91.2
 python: 2.4.4 (#1, Oct 23 2006, 13:58:18)  [GCC 4.1.1
 20061011 (Red Hat 4.1.1-30)]
   platform: linux2

REQUIRED DEPENDENCIES
  numpy: 1.0.3
  freetype2: found, but unknown version (no pkg-config)
 * WARNING: Could not find 'freetype2' headers  
in any
 * of '/usr/local/include', '/usr/include', '.',
 * '/usr/local/include/freetype2',
 * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
 libpng: found, but unknown version (no pkg-config)
 * Could not find 'libpng' headers in any of
 * '/usr/local/include', '/usr/include', '.'
Tkinter: no
 * Tkinter present, but header files are not  
found.
 * You may need to install development packages.
   wxPython: no
 *  WXAgg's accelerator requires `wx-config'.   
The
 * `wx-config' executable could not be located  
in any
 * directory of the PATH environment variable.  
If you
 * want to build WXAgg, and wx-config is in some
 * other location or has some other name, set  
the
 * WX_CONFIG environment variable to the full  
path of
 * the executable like so:  export WX_CONFIG=/ 
usr/lib
 * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
   Gtk+: no
 * pygtk present but import failed
 Qt: Qt: 3.3.7, PyQt: 3.17
Qt4: no
  Cairo: 1.2.6

OPTIONAL DATE/TIMEZONE DEPENDENCIES
   datetime: present, version unknown
   dateutil: present, version unknown
   pytz: 2006p

OPTIONAL USETEX DEPENDENCIES
 dvipng: 1.5
ghostscript: 8.15.4
  latex: 3.141592
pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
  configobj: matplotlib will provide
   enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]
= 
= 
= 
= 

warning: no files found matching 'NUMARRAY_ISSUES'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'matplotlibrc'
warning: no files found matching 'lib/matplotlib/toolkits'
no previously-included directories found matching 'examples/_tmp_*'
In file included from src/ft2font.cpp:2:
src/ft2font.h:11:22: error: ft2build.h: No such file or directory
src/ft2font.h:12:10: error: #include expects "FILENAME" or 
src/ft2font.h:13:10: error: #include expects "FILENAME" or 
src/ft2font.h:14:10: error: #include expects "FILENAME" or 
src/ft2font.h:15:10: error: #include expects "FILENAME" or 
src/ft2font.h:16:10: error: #include expects "FILENAME" or 
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:75: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:75: error: ISO C++ forbids declaration of ‘FT_Face’ with  
no type
src/ft2font.h:81: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:81: error: ISO C++ forbids declaration of ‘FT_Face’ with  
no type
src/ft2font.h:121: error: ‘FT_Face’ does

Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Michael Droettboom
I vaguely recall a bug whereby mathtext on PDF was upside down (because 
the direction of the y-axis was not being inverted)... but I can't find 
the bug report.

It does seem to work in 0.90.1 and 0.91.2 (on Linux at least).  Are you 
able to upgrade?

Cheers,
Mike

Simson Garfinkel wrote:
> Hi. I'm making scientific graphs again, so i just got back on this 
> mailing list after a two year hiatus.
>
> I am using:
> matplotlib-0.90.0-py2.5-macosx-10.4-fat.egg
>
> Here is a simple program:
>
> #!/usr/bin/python
> #
> # Do our plots with matplotlib
>
> import matplotlib
> matplotlib.use('Agg')
> from pylab import *
>
> fig = figure(num=1,figsize=(6.5,4))
> ax = fig.add_axes([.15,.3,.8,.65])
> ax.set_title("Why is the Y axes upside down?")
> ax.set_yscale('log')
> ax.set_ylabel('Queries per second')
>
> ax.bar(1,1000,.5,color='r')
> ax.bar(2,5000,.5,color='b')
> ax.bar(3,55000,.5,color='g')
>
> fig.savefig("broken_log_demo.png")
>
> Here is the plot with a PNG:
>
>
>
> 
>
>
>
>
> Well, that looks good.
>
> But here is the plot when I change the type to PDF:
>
>
>
>
> Notice the the axes are reversed.
>
> 
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users