Matplotlib-users Digest, Vol 36, Issue 7

Hello Tom!

Thanks for your attention. I have installed Matplotlib with the
repositories of Ubuntu.

I solved the problem of Ubuntu 16 reinstalling MatPlotLib v.*1.4.3*
(downgrading?) token from the following link https://sourceforge.net/projec
ts/matplotlib/files/matplotlib/matplotlib-1.4.3/

With Ubuntu 18 the previous solution does not work and the version of
MatPlotLib remains v. *2.1.1*.

I have attached the file that I use for the graph with the motion sensor.

Thank you for your help in this matter,

Marco

2018-07-18 18:00 GMT+02:00 <matplotlib-users-request at python.org>:

Send Matplotlib-users mailing list submissions to
        matplotlib-users at python.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.python.org/mailman/listinfo/matplotlib-users
or, via email, send a message with subject or body 'help' to
        matplotlib-users-request at python.org

You can reach the person managing the list at
        matplotlib-users-owner at python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Matplotlib-users digest..."

Today's Topics:

   1. custom fonts in matplotlib graphs (Matthew Bradley)
   2. Re: read file with date and plot it (Diego Avesani)
   3. Ubuntu 18 animation and Qt5Agg (Animatore. TRPS03000X)

----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Jul 2018 12:44:39 -0600
From: Matthew Bradley <mbatr27 at gmail.com>
To: matplotlib-users at python.org
Subject: [Matplotlib-users] custom fonts in matplotlib graphs
Message-ID:
        <CAPXQNQU1LDjzkRLtza3X1GpJwdAfPTKC8u2jrmodTAzo3a+eng at mail.
gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi all:

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.

System information:
Matplotlib 2.2.02
Mac OS El Capitan
Python 3.6
And I have the .ttf file in both my system font library and in the
matplotlib font library

Thanks!

--
Matthew Bradley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/
attachments/20180717/02836858/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 17 Jul 2018 21:19:56 +0200
From: Diego Avesani <diego.avesani at gmail.com>
To: matplotlib-users at python.org
Subject: Re: [Matplotlib-users] read file with date and plot it
Message-ID:
        <CAG8o1y4hSmyZZNEou=iz_GrMzb_CpSNeuHj4LZrE=f73DH7tNg at mail.
gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear scott,

Let's me try. I'll write back as soon as possible,

Diego

> 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)
> df.plot(x='date',y='dato2',)
>
> >
> > 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-
> f3.html
> > _______________________________________________
> > Matplotlib-users mailing list
> > Matplotlib-users at python.org
> > https://mail.python.org/mailman/listinfo/matplotlib-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/
attachments/20180717/a67fcd41/attachment-0001.html>

------------------------------

Message: 3
Date: Wed, 18 Jul 2018 08:34:59 +0200
From: "Animatore. TRPS03000X" <animatore.trps03000x at didasca.org>
To: matplotlib-users at python.org
Subject: [Matplotlib-users] Ubuntu 18 animation and Qt5Agg
Message-ID:
        <CACxvrmO6Sf1R7TxiGci218gEUASiu9zVcYact6xjiiR8NAL91w at mail.
gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi!

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 https://www.youtube.com/watch?
v=fuEjOx7tkwU.

In 2016 we had a problem with Ubuntu 16 LTS, MatPlotLib did not work as
well as before: the window and the graph were ok but, finished plotting,
the graph was not shown after zooming (like a loss of data). We solved
doing the steps that you can read at the link below:
http://marcocalvaniatm.
altervista.org/blog/wp-content/uploads/2017/12/open_phys.pdf.

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
do.

Can anybody help us?
Thanks a bunch for your time spent and your attention
Marco Calvani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/
attachments/20180718/7dcd41c4/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

------------------------------

End of Matplotlib-users Digest, Vol 36, Issue 7
***********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180720/bb97f70d/attachment.html>

···

On 15 July 2018 at 21:56, Scott Lasley <selasley at icloud.com> wrote:
> > On Jul 15, 2018, at 11:30, diedro <diego.avesani at gmail.com> wrote: