|
From: | Pantxo Diribarne |
Subject: | Re: Benchmark for graphics in 4.0 |
Date: | Wed, 11 Mar 2015 08:49:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Le 10/03/2015 01:43, Ben Abbott a écrit :
On Mar 9, 2015, at 6:08 PM, Pantxo Diribarne <address@hidden> wrote: Le 09/03/2015 22:57, Pantxo Diribarne a écrit :Le 09/03/2015 20:54, Andreas Weber a écrit :Am 09.03.2015 um 09:13 schrieb Pantxo DiribarneDuring the last months I found that this page [1] was really helpful in order to compare plots with older versions of Octave. Could we run the script that generated those plots and make a 4.0 benchmark. I'd be happy to help on this (I have Matlab 2013a at work) but need instructions: where do I find the necessary scripts? How do I run them? @Andy: will you be able to host the resulting plots on the same page?Hi Pantxo, the used scripts are in octave-src/scripts/testfun/private/ dump_demos creates a script with the demo blocks which can be run with FLTK, gnuplot and Matlab, html_compare_plot_demos fills the result to the html template. Btw, do you know http://wiki.octave.org/Plot_comparison?Yes, I even edited it once :-) but my memory is more or less in my bookmarks table, in which I forgot to put that page.I can run the scripts for FLTK and gnuplot on 4.0-rc1 but haven't access to Matlab (I'm even unsure if the matlab scripts would run after the last changes which removed for example sombrero) and yes, I can host them on tech-chat.deThanks, I generated the script and will try to run it on Matlab soon.-- AndyPantxoI forgot, if we are to generate the plots separately we should probably use the very same script. I attached the script generated from the current dev although it should be identical with 4.0-rc1. Pantxo <dump_plot_demos.m>Wow!. Lots of regressions since the last time this was run on Matlab. Some simple things need to be fixed. (1) In Matlab "!' is an alias for "system".
I'll take care of those.
(2) Matlab recently introduced the "assert()" function, which is not compatible with Octave's. In general tests should be avoided in demo scripts.
Agreed, those should be turned into proper tests or removed
(3) Matlab does not use double quotes. So in demos all strings need to be defined using single quotes.
I'll take care of those.
Many demos use it and it's like Octave's second logo after all :-). I'd vote for keeping them. @Andy: you talked about sombrero being removed. Is there a reason for not having a Matlab compatible version with the other utility scripts?(4) Matlab does not have a sombrero() function. The demos should avoid it.
The images produced by my version of Matlab (2013a on a Unix server) have many problems with fonts and 3D rendering. Ben's are probably more representative of what Matlab can produce (on actually supported platforms).That covers most of the changes needed to get the script to run. I've zipped the directory containing the modified script and all the output. I've also included the command line output as "dump_plot_demos.txt" to help in tracking down other errors I didn't catch. https://www.dropbox.com/s/c17g6xt2rkyi8w3/dump_plot_demos.zip?dl=0 To avoid regressions, would it make sense to write a test script that grabs all the demos and checks for the incompatibilities above? Ben
Pantxo
[Prev in Thread] | Current Thread | [Next in Thread] |