Unfortunately, matplotlib does not support fontset, and only a single
font file can be used at a time.
If you need to to use multiple fonts within a single text string, the
only workaround I can think of is to use the offsetbox module to make
a text for each font and concatenate them. If you're in
How can I correctly subclass AutoDateFormatter and use it in my code?
What I am doing is copying the code from matplotlib's AutoDateFormatter and
changing the strings for how the dates are represented and making that a
class, MyAutoDateFormatter. AutoDateFormatter expects a locator, and I
think (
If you want the whole background to disappear, simply call set_axis_off method.
ax.set_axis_off()
To control the visibility of each element, use something like below.
for axis in ax.w_xaxis, ax.w_yaxis, ax.w_zaxis:
for elt in axis.get_ticklines() + axis.get_ticklabels():
elt.set_visible(
Thanks for the quick reply Ben. Let me know how I can help.
Regards,
N
On Sun, Nov 28, 2010 at 6:54 PM, Benjamin Root wrote:
> On Sunday, November 28, 2010, Nicolas Pinto wrote:
>> Dear all,
>>
>> I'm trying to get rid of the mplot3d background (in vain, see below),
>> how can I do this?
>>
>>
On Sunday, November 28, 2010, Nicolas Pinto wrote:
> Dear all,
>
> I'm trying to get rid of the mplot3d background (in vain, see below),
> how can I do this?
>
> Thanks for your help.
>
> Best,
>
> Nicolas
>
> demo:
>
> from mpl_toolkits.mplot3d import axes3d, axis3d
> import matplotlib.pyplot as
Dear all,
I'm trying to get rid of the mplot3d background (in vain, see below),
how can I do this?
Thanks for your help.
Best,
Nicolas
demo:
from mpl_toolkits.mplot3d import axes3d, axis3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = axes3d.Axes3D(fig)
for axis