Date: Tue, 17 Jul 2018 12:44:39 -0600
From: Matthew Bradley <[hidden email]>
To: [hidden email]
Subject: [Matplotlib-users] custom fonts in matplotlib graphs
Content-Type: text/plain; charset="utf-8"
I?ve added a courier.ttf file to my font library and included the font in
the matplotlibrc file in my site packages and rebuilt the cache file. I
still get an error message that the font can?t be found and I can?t find
any system or matplotlib cache files using the finder to delete them. Have
any of you encountered this problem? How can I get matplotlib to recognize
my new font.
Mac OS El Capitan
And I have the .ttf file in both my system font library and in the
matplotlib font library
> Are you using the names parameter in read_csv to set the header names?
> This works for me
> headers = ['date','dato1','dato2','dato3']
> df = pd.read_csv('./'+folder+'/'+fname, header=None, names=headers)
> > On Jul 15, 2018, at 11:30, diedro <[hidden email]> wrote:
> > Dear all,
> > I have created with fortran the following file:
> > /
> > 2013:01:02-01,-999.0000, 1.0000000E+00,1.0000000E+00
> > 2013:01:02-02,-999.0000, 2.0000000E+00,0.0000000E+00
> > 2013:01:02-03,-999.0000, 3.0000000E+00,2.0000000E+00
> > 2013:01:02-04,-999.0000, 4.0000000E+00,0.0000000E+00
> > 2013:01:02-05,-999.0000, 5.0000000E+00,3.0000000E+00/
> > ....
> > I would like to read it and to plot data according to date
> > so far this is what I do:
> > /folder = 'meteo_stations'
> > fname = 'stations_pp.txt'
> > headers = ['date','dato1','dato2','dato3']
> > df = pd.read_csv('./'+folder+'/'+fname,)
> > df.plot(x='date',y='dato2',)/
> > unfortunately, I get an error?
> > what shall I do?
> > Thanks for any kind of helps,
> > Best regards
> > --
> > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-
> > _______________________________________________
> > Matplotlib-users mailing list
> > [hidden email]
> > https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
An HTML attachment was scrubbed...
My name is Marco, I am a math and pyhs teacher in an High School in Terni
(130 km far from Rome). In 2015, I and my students made an Open Physics Lab
using open hardware (Arduino, sensors) and Open software (Ubuntu 14,
MatPlotLib and GeoGebra etc.). You can watch the Laboratory working with
distance sensor if you play this video <a href="https://www.youtube.com/watch?
v=fuEjOx7tkwU" rel="noreferrer" target="_blank">https://www.youtube.com/watch?
Now with Ubuntu 18 LTS the problem came up again: the buttons work but no
graph is shown after zooming or go back, the save button is ok. The
solution that we found before is not working now and we do not know what to