Dear all,
I'm trying to set the font for math elements in my plots to 'Arial' when
saving my plot to an eps. For all other text in plots, I set
##
matplotlib.rcParams['font.sans-serif']=["Arial"]
##
and it worked. My default rcparams for mathtext look like this:
'mathtext.bf': 'serif:bold',
'ma
t; ax = fig.add_subplot(122)
> plt.plot(scipy.cos(scipy.arange(1,100, 0.001)))
> plt.xlabel('xlabel')
>
> my_ticklabel = ax.get_yticklabels()[-2]
> # Note that there is no guarantee that all ticklabels are drawn.
> plt.annotate("B", (0,1.), xycoords=(my_ticklabel, "
Dear all,
I'm struggling with the following problem plotting my data:
I have a figure with two panels next to each other, which I want to
label 'A' and 'B'. I want to left-justify my panel labels, but not to
the box that contains the plot, but to the y-axis label. I played around
with 'text()' an
Dear all,
I want to plot 3 overlapping regions using fill() into one panel, but my
solution looks sort of messy... Here is the code:
===
import matplotlib.pyplot as plt
import scipy
##Data to plot
seq = scipy.sin(range(0,10))
xpts = scipy.concatenate((range(0,10), range(0,10)[::-1]))
plt.figure(