Below is some code to do 1, 2, and 4.
The 3rd issue is a bit more difficult. One approach is to use Jae-
Joon's AxesGrid toolkit; you may need to be using the latest
development version of matplotlib to use the toolkit.
BTW, does anyone know why it's ``ax.set_axis_bgcolor`` instead of
``ax.set_facecolor``?
Best,
-Tony
% ==============================
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure(frameon=False)
ax = plt.gca()
light_gray = (.8, .8, .8)
dark_gray = (.2, .2, .2)
x = np.random.random_integers(1, 10, 50)
n, bins, patches = ax.hist(x, facecolor='#658A2F')
for p in patches:
p.set_edgecolor(dark_gray)
ax.set_axis_bgcolor(light_gray)
ax.yaxis.grid(color='w', linestyle='-')
# Assuming you want the gridlines below the bars
ax.set_axisbelow(True)
plt.show()
On Jul 27, 2009, at 11:22 AM, Gewton Jhames wrote:
thanks!!
only 4 left.
On Mon, Jul 27, 2009 at 11:31 AM, Gökhan SEVER
<gokhanse...@gmail.com> wrote:
For the 5th one ;)
figure(frameon=False)
On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames <gjha...@gmail.com>
wrote:
Hello, would you help me in some design issues that I wish to put in
my matplotlib graph?
I want my graph look like the one that I'm attaching on this email:
Change the Background-color of the axis to gray;
Display only horizontal lines on the axis, in white color;
Display only the border-left and the border-bottom of the graph, and
in 2px of width;
Change the border-color of the bars of the graphics (to a more dark
gray).
Save in a transparent png.
Can anyone know how to change any of these features? thanks.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Gökhan
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users