From Nicolas.Rougier at inria.fr Fri Sep 7 11:51:56 2018 From: Nicolas.Rougier at inria.fr (Nicolas Rougier) Date: Fri, 7 Sep 2018 17:51:56 +0200 Subject: [Matplotlib-users] Beautified pendulum animation Message-ID: <1466A0C0-70B0-4D32-A485-28F66E0FEE13@inria.fr> Hi all, I?ve ?beautified? the pendulum animation (from matplotlib examples): https://github.com/rougier/pendulum I can make a PR if you think it?s worth to replace the original one. Nicolas From ben.v.root at gmail.com Fri Sep 7 12:00:36 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Fri, 7 Sep 2018 12:00:36 -0400 Subject: [Matplotlib-users] Beautified pendulum animation In-Reply-To: <1466A0C0-70B0-4D32-A485-28F66E0FEE13@inria.fr> References: <1466A0C0-70B0-4D32-A485-28F66E0FEE13@inria.fr> Message-ID: It is prettier, but it isn't showing the divergence of the trajectories, which is the real teaching point of double pendulums -- sensitive dependence on initial conditions. On Fri, Sep 7, 2018 at 11:52 AM Nicolas Rougier wrote: > > Hi all, > > I?ve ?beautified? the pendulum animation (from matplotlib examples): > https://github.com/rougier/pendulum > I can make a PR if you think it?s worth to replace the original one. > > > Nicolas > > _______________________________________________ > 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: From tcaswell at gmail.com Tue Sep 18 20:43:56 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Tue, 18 Sep 2018 20:43:56 -0400 Subject: [Matplotlib-users] [REL] Matplotlib 3.0.0 Message-ID: Folks, Happy to announce Matplotlib 3.0.0! This is the first version of Matplotlib to only support Python 3. If you need Python 2.7 support the 2.2.x LTS series will continue to receive critical bug-fixes until 2020. Highlights of this release include: - GUI backend is selected at run-time based on what toolkits are installed. A GUI toolkit will not be selected on a headless server. - New cyclic color map *twilight* - Improvements to automatic layout of titles, ticks, and GridSpec - Many bug fixes! For the full details see https://matplotlib.org/users/whats_new.html and https://matplotlib.org/api/api_changes.html for whats new and API changes respectively. For packagers: Matplotlib no longer depends on six or pytz. A big thank you to everyone who worked on this release in terms of commits (~130 people have commits), reporting issues, and review. I expect there to be a v3.0.1 release in the next month or so. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Wed Sep 19 10:03:12 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Wed, 19 Sep 2018 10:03:12 -0400 Subject: [Matplotlib-users] [REL] Matplotlib 3.0.0 In-Reply-To: References: Message-ID: Folks, A small update, when I uploaded the wheels yesterday I only uploaded about half of them [1] and did not check my work carefully enough. This has been rectified, sorry to everyone who had installs fail his morning. Tom [1] I downoladed one of the wheels from http://wheels.scipy.org/ twice, the browser helpfully added (1) to the name, when I when to upload everything twine got half way through and failed out on that file. I thought it had done everything else, but it had actually only done everything up to that file. On Tue, Sep 18, 2018 at 8:43 PM Thomas Caswell wrote: > Folks, > > Happy to announce Matplotlib 3.0.0! > > This is the first version of Matplotlib to only support Python 3. > > If you need Python 2.7 support the 2.2.x LTS series will continue to > receive critical bug-fixes until 2020. > > Highlights of this release include: > > - GUI backend is selected at run-time based on what toolkits are > installed. A GUI toolkit will not be selected on a headless > server. > - New cyclic color map *twilight* > - Improvements to automatic layout of titles, ticks, and GridSpec > - Many bug fixes! > > For the full details see https://matplotlib.org/users/whats_new.html > and https://matplotlib.org/api/api_changes.html for whats new and API > changes respectively. > > For packagers: Matplotlib no longer depends on six or pytz. > > A big thank you to everyone who worked on this release in terms of commits > (~130 people have commits), reporting issues, and review. > > I expect there to be a v3.0.1 release in the next month or so. > > Tom > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From diego.avesani at gmail.com Sun Sep 23 15:07:16 2018 From: diego.avesani at gmail.com (Diego Avesani) Date: Sun, 23 Sep 2018 21:07:16 +0200 Subject: [Matplotlib-users] table in a figure Message-ID: Dear all, I have a scrip that put a table in a subfigure. It works well. However, if I change the data it seems to not work anymore. I would try to explain myself in a better way this is the script: def latex_table(celldata,rowlabel,collabel): table = r'\begin{table} \begin{tabular}{|1|' for c in range(0,len(collabel)): # add additional columns table += r'1|' table += r'} \hline' # provide the column headers for c in range(0,len(collabel)-1): table += collabel[c] table += r'&' table += collabel[-1] table += r'\\ \hline' # populate the table: # this assumes the format to be celldata[index of rows][index of columns] for r in range(0,len(rowlabel)): table += rowlabel[r] table += r'&' for c in range(0,len(collabel)-2): if not isinstance(celldata[r][c], basestring): table += str(celldata[r][c]) else: table += celldata[r][c] table += r'&' if not isinstance(celldata[r][-1], basestring): table += str(celldata[r][-1]) else: table += celldata[r][-1] table += r'\\ \hline' table += r'\end{tabular} \end{table}' return table celldata = [[32, r'$\alpha$', 123],[200, 321, 50]] rowlabel = [r'1st row', r'2nd row'] collabel = [r' sasas', r'$\alpha$', r'$\beta$', r'$\gamma$'] If I read instead "collabel" as per_data=np.genfromtxt('2.csv',delimiter=',',names=True) collabel = per_data.dtype.names It does not print some values in collabel Can anyone help me? Really Really Thanks, Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: