hi all, I am trying to make a simple bar graph that has its yaxis scale set to log. I use the following code:
import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['ps.useafm'] = True rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['pdf.fonttype'] = 42 plt.rcParams['font.size'] = 10 x = range(1, 11) y = [5000, 900, 600, 500, 200, 110, 50, 20, 10, 5] plt.figure(figsize=(5, 5), dpi=300) plt.bar(x, y) plt.gca().set_yscale('log') plt.savefig('test_logscale.pdf') the problem is that the bar graphs do not appear -- instead, i simply get horizontal lines around where the top of the bar graph should appear. Any idea how to fix this? also, sometimes the x axis disappears when i try this. thanks. ------------------------------------------------------------------------------ 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users