[Matplotlib-users] hatching problem

2010-02-09 Thread Tomasz Koziara

Dear Users/Developers

I just installed version 0.99.1.1 since in my previous version (0.98)  
I had problems with hatching. It seems though that the same problems  
persist in the current version. The attached files reproduce the  
problem (a data file and a python short script). Note that hatching is  
not present on all green 'CONUPD' fields - but only on few of them.


I will appreciate some hints on how to get by,
Regards
Tomek

===


cubes_1_PSEUDO_RIGID_FULL
Description: Binary data



#!/usr/bin/env python
# a stacked bar plot with errorbars
import numpy as np
import matplotlib.pyplot as plt

inp = open (cubes_1_PSEUDO_RIGID_FULL, r)
dat = [[],[],[],[],[],[],[],[],[],[],[]]
lin = inp.readline ()
num = 0
while lin != :
  lst = lin.rsplit ( )
  lin = inp.readline ()
  if len (lst)  2:
dat [num % 11].append (float (lst [2]))
num = num + 1

N = 8
TIMINT = np.array (dat [0])
CONUPD = np.array (dat [1])
CONDET = np.array (dat [2])
LOCDYN = np.array (dat [3])
CONSOL = np.array (dat [4])
PARBAL = np.array (dat [5])
ind = np.arange(N)
width = 0.6

p1 = plt.bar (ind, TIMINT, width, color='r')
p2 = plt.bar (ind, CONUPD, width, color='g', bottom=TIMINT, hatch='//')
p3 = plt.bar (ind, CONDET, width, color='b', bottom=TIMINT+CONUPD, hatch='.')
p4 = plt.bar (ind, LOCDYN, width, color='y', bottom=TIMINT+CONUPD+CONDET, hatch='o')
p5 = plt.bar (ind, CONSOL, width, color='c', bottom=TIMINT+CONUPD+CONDET+LOCDYN, hatch='*')
p6 = plt.bar (ind, PARBAL, width, color='m', bottom=TIMINT+CONUPD+CONDET+LOCDYN+CONSOL, hatch='O')

plt.ylabel ('Time [s]')
plt.title ('Runtimes by processor count')
plt.xticks (ind+width/2., ('1', '2', '4', '8', '16', '32', '64', '128') )
plt.legend ((p6[0], p5[0], p4[0], p3[0], p2[0], p1[0]), ('PARBAL', 'CONSOL', 'LOCDYN', 'CONDET', 'CONUPD', 'TIMEINT'), loc = upper left)
plt.axis (xmin = -0.2, xmax = ind[N-1]+width+0.2)
plt.savefig ('cubes-1-prb-full.eps')
plt.clf ()



===

dh178-192:tkp5 tomek$ python plots.py --verbose-helpful
$HOME=/Users/tomek
CONFIGDIR=/Users/tomek/.matplotlib
matplotlib data path /Library/Python/2.5/site-packages/matplotlib/mpl- 
data
loaded rc file /Library/Python/2.5/site-packages/matplotlib/mpl-data/ 
matplotlibrc

matplotlib version 0.99.1.1
verbose.level helpful
interactive is False
units is False
platform is darwin
Using fontManager instance from /Users/tomek/.matplotlib/fontList.cache
backend MacOSX version unknown
findfont: Matching :family=sans- 
serif:style 
=normal:variant=normal:weight=normal:stretch=normal:size=medium to  
Bitstream Vera Sans (/Library/Python/2.5/site-packages/ 
matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/ 
fonts/ttf/Vera.ttf) with score of 0.00
findfont: Matching :family=sans- 
serif:style 
=normal:variant=normal:weight=normal:stretch=normal:size=large to  
Bitstream Vera Sans (/Library/Python/2.5/site-packages/ 
matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/ 
fonts/ttf/Vera.ttf) with score of 0.00


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] hatching problem

2010-02-09 Thread Jae-Joon Lee
I cannot reproduce it with Agg backend and ps backend. I tried both
svn version and 0.99 maint. version.
So, maybe this is a bug in mac os X backend?
Do you see a same problem with the ps output? If so, can you post your
ouput ps file?

Regards,

-JJ


On Mon, Feb 8, 2010 at 3:26 PM, Tomasz Koziara
t.kozi...@civil.gla.ac.uk wrote:
 Dear Users/Developers

 I just installed version 0.99.1.1 since in my previous version (0.98) I had
 problems with hatching. It seems though that the same problems persist in
 the current version. The attached files reproduce the problem (a data file
 and a python short script). Note that hatching is not present on all green
 'CONUPD' fields - but only on few of them.

 I will appreciate some hints on how to get by,
 Regards
 Tomek

 ===






 ===

 dh178-192:tkp5 tomek$ python plots.py --verbose-helpful
 $HOME=/Users/tomek
 CONFIGDIR=/Users/tomek/.matplotlib
 matplotlib data path /Library/Python/2.5/site-packages/matplotlib/mpl-data
 loaded rc file
 /Library/Python/2.5/site-packages/matplotlib/mpl-data/matplotlibrc
 matplotlib version 0.99.1.1
 verbose.level helpful
 interactive is False
 units is False
 platform is darwin
 Using fontManager instance from /Users/tomek/.matplotlib/fontList.cache
 backend MacOSX version unknown
 findfont: Matching
 :family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=medium
 to Bitstream Vera Sans
 (/Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
 with score of 0.00
 findfont: Matching
 :family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=large
 to Bitstream Vera Sans
 (/Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
 with score of 0.00


 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] hatching problem

2010-02-09 Thread Michiel de Hoon
I wasn't able to replicate this problem with the Mac OS X backend with 
matplotlib 0.99.1.1. Both the on-screen figure and the ps output look fine.

--Michiel.


--- On Tue, 2/9/10, Jae-Joon Lee lee.j.j...@gmail.com wrote:

 From: Jae-Joon Lee lee.j.j...@gmail.com
 Subject: Re: [Matplotlib-users] hatching problem
 To: Tomasz Koziara t.kozi...@civil.gla.ac.uk
 Cc: matplotlib-users@lists.sourceforge.net
 Date: Tuesday, February 9, 2010, 10:42 AM
 I cannot reproduce it with Agg
 backend and ps backend. I tried both
 svn version and 0.99 maint. version.
 So, maybe this is a bug in mac os X backend?
 Do you see a same problem with the ps output? If so, can
 you post your
 ouput ps file?
 
 Regards,
 
 -JJ
 
 
 On Mon, Feb 8, 2010 at 3:26 PM, Tomasz Koziara
 t.kozi...@civil.gla.ac.uk
 wrote:
  Dear Users/Developers
 
  I just installed version 0.99.1.1 since in my previous
 version (0.98) I had
  problems with hatching. It seems though that the same
 problems persist in
  the current version. The attached files reproduce the
 problem (a data file
  and a python short script). Note that hatching is not
 present on all green
  'CONUPD' fields - but only on few of them.
 
  I will appreciate some hints on how to get by,
  Regards
  Tomek
 
  ===
 
 
 
 
 
 
  ===
 
  dh178-192:tkp5 tomek$ python plots.py
 --verbose-helpful
  $HOME=/Users/tomek
  CONFIGDIR=/Users/tomek/.matplotlib
  matplotlib data path
 /Library/Python/2.5/site-packages/matplotlib/mpl-data
  loaded rc file
 
 /Library/Python/2.5/site-packages/matplotlib/mpl-data/matplotlibrc
  matplotlib version 0.99.1.1
  verbose.level helpful
  interactive is False
  units is False
  platform is darwin
  Using fontManager instance from
 /Users/tomek/.matplotlib/fontList.cache
  backend MacOSX version unknown
  findfont: Matching
 
 :family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=medium
  to Bitstream Vera Sans
 
 (/Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
  with score of 0.00
  findfont: Matching
 
 :family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=large
  to Bitstream Vera Sans
 
 (/Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/fonts/ttf/Vera.ttf)
  with score of 0.00
 
 
 
 --
  The Planet: dedicated and managed hosting, cloud
 storage, colocation
  Stay online with enterprise data centers and the best
 network in the
  business
  Choose flexible plans and management services without
 long-term contracts
  Personal 24x7 support from experience hosting pros
 just a phone call away.
  http://p.sf.net/sfu/theplanet-com
  ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 --
 The Planet: dedicated and managed hosting, cloud storage,
 colocation
 Stay online with enterprise data centers and the best
 network in the business
 Choose flexible plans and management services without
 long-term contracts
 Personal 24x7 support from experience hosting pros just a
 phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 


  

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users