Rank: 492 based on 137 downloads (last 30 days) and 3 files submitted
photo

Paul Mennen

E-mail

Personal Profile:

Author info at my web site:
www.mennen.org

Professional Interests:

 

Watch this Author's files

 

Files Posted by Paul View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Dec 2011 Screenshot plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen data exploration, plot, subplots, gui objects, panning, zooming 124 43
  • 4.44444
4.4 | 29 ratings
10 Nov 2009 Screenshot winplt Display and design tool for FFT windows - alternative to wintool.m Author: Paul Mennen spectral analysis, fft window wintool, fft window, wintool, harris paper 8 1
  • 5.0
5.0 | 1 rating
17 Mar 2005 MPP (Matlab PreProcessor) C programmers may miss having a preprocessor. Here is one tailored just for MATLAB. Author: Paul Mennen development environme..., preprocessor, c programmers, mpp, utilities, development 5 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Paul View all
Updated File Comments Rating
10 Nov 2011 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen

> Warwick wrote: Is there an easy way I can set a default to a publication figure?

Certainly Warwick. Create a new file in the plt folder called pltpub.m which contains this:

function out = pltpub(varargin)
  out = plt(varargin{:},...
  'ColorDef',0,...
  'TraceID',0,...
  'Options','-AN');

Then for example you can type something like "pltpub(x,[y1;y2;y3])" and those 3 traces will be plotted using parameters appropriate for generating publication hardcopy.

Thanks for your rating and comments Warwick.

01 Nov 2010 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen

> Marc wrote: Is it possible to link multiple traces to one color?

Hi Marc ... Thanks for the great rating.
  And yes you can set the trace colors quite easily. Note that if you type "plt(rand(6,30))" the 6 traces will appear in a different color for each trace, but if you type "plt(rand(6,30),'TraceC',[0 1 0]) then all 6 traces will be green. or use 'TraceC',[0 1 0; 1 0 0] and the odd numbered traces will be green and the evens will be red. Hope that helps :)
  ~Paul

07 Sep 2010 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen

> Nick wrote: It doesn't seem like it would be too hard to
> add a publish feature that would take away the menu items ...

Looks like you have noticed my bias towards data exploration, yet I haven't ignored the publishing angles entirely. For example, after you get everything looking the way you would like to publish the figure, right click on the y-axis label and the data exploration items (i.e. menu box, cursor controls, cursor readouts) disappear so as not to clutter up your copy.

Also you can include the 'colorDef' command to specify the colors you would like to use. The simplest choice is 'colorDef','Default' or 'colorDef',0 which selects the usual Mathworks' color scheme which isn't bad for publication use. If you start plt with its default dark background colors the screen colors will get inverted when you do a hardcopy (since printing with a black background generally produces miserable results).

For years I've been trying to get plt users to run the demo program (demoplt.m) at least once, yet amazingly enough when I ask new users they nearly always tell me they haven't run it.

That's unfortunate since one of the example plots would usually show the user that the feature they were pining for is available, and shows them the example code that does it. In your case, the appropriate example is called "pub" which shows two plots optimized for publication. These examples are also described in the .chm help file, although of course nobody reads manuals any more (even me) ... and I'm used to that by now :)

Anyway Nick, thanks for your review as well as the 5 stars!

~Paul

08 Jul 2010 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen

Brett - thanks very much for the high rating and the positive review. Regarding the slow update rate, you would have the same problem with plot, plotyy or other matlab plotting routines since like plt they all rely on the same underlying matlab objects (figure, axis, line, etc). That said, I'm curious how you get a 4 second lag. You say "thousands of points". Perhaps you were really into the millions?. For example, try this simple script:

  > t = (0:250000)/250000;
  > y1 = exp(-2*t).*sin(20*t);
  > y2 = t .* cos(5*pi*(1-t).^3);
  > y3 = exp(-1.4*t).*sin(10*pi*t.^5);
  > plt(t,[y1; y2; y3; humps(t)/100]);

This plots 4 traces, each of which has a quarter of a million points. Quite a stress for the plotting routines yet the update rate on my 6 year old computer (even modest in its day) is around .5 seconds - noticeable but still quite usable. So I suspect there is something else causing your slowdown. If you want to send me your code and/or data (at the email address inside the plt help file) I might have a suggestion for you. For very large data sets decimating the data before plotting may be necessary if smooth zooming/panning is desired.
~Paul

11 May 2010 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen

> Robert Barrie wrote: "Has this been tested on R2009b?"
Thanks for the comment Robert. I found access to a system with R2009b, and indeed there was an issue. I fixed that, so if you download plt today it should work for you. It will likely work with R2010 as well, although since I don't have access to that, I'm hoping one of the plt users with that update will add a comment about that. ~Paul

Comments and Ratings on Paul's Files View all
Updated File Comment by Comments Rating
11 Nov 2011 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen Warwick

Many thanks, Paul.

10 Nov 2011 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen Mennen, Paul

> Warwick wrote: Is there an easy way I can set a default to a publication figure?

Certainly Warwick. Create a new file in the plt folder called pltpub.m which contains this:

function out = pltpub(varargin)
  out = plt(varargin{:},...
  'ColorDef',0,...
  'TraceID',0,...
  'Options','-AN');

Then for example you can type something like "pltpub(x,[y1;y2;y3])" and those 3 traces will be plotted using parameters appropriate for generating publication hardcopy.

Thanks for your rating and comments Warwick.

10 Nov 2011 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen Warwick

This is great. So many ways it is better than plotyy. Is there an easy way I can set a default to publication figure so I don't have to type in "Colordef, 0, 'traceID, '', Options, '-All NoCursor' each time?
If not, it's a small price to pay for the time I have saved compared to the "old" way.

13 Jul 2011 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen Esler, Brian

Awesome stuff!
I've just started experimenting with this type of sliderbar interface, and it's incredibly useful. You're functions were extremely instructive.

01 Nov 2010 plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen Mennen, Paul

> Marc wrote: Is it possible to link multiple traces to one color?

Hi Marc ... Thanks for the great rating.
  And yes you can set the trace colors quite easily. Note that if you type "plt(rand(6,30))" the 6 traces will appear in a different color for each trace, but if you type "plt(rand(6,30),'TraceC',[0 1 0]) then all 6 traces will be green. or use 'TraceC',[0 1 0; 1 0 0] and the odd numbered traces will be green and the evens will be red. Hope that helps :)
  ~Paul

Top Tags Applied by Paul
c programmers, cursors, data editing, data exploration, development
Files Tagged by Paul View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Dec 2011 Screenshot plt An alternative to plot and plotyy optimized for data exploration Author: Paul Mennen data exploration, plot, subplots, gui objects, panning, zooming 124 43
  • 4.44444
4.4 | 29 ratings
10 Nov 2009 Screenshot winplt Display and design tool for FFT windows - alternative to wintool.m Author: Paul Mennen spectral analysis, fft window wintool, fft window, wintool, harris paper 8 1
  • 5.0
5.0 | 1 rating
17 Mar 2005 MPP (Matlab PreProcessor) C programmers may miss having a preprocessor. Here is one tailored just for MATLAB. Author: Paul Mennen development environme..., preprocessor, c programmers, mpp, utilities, development 5 1
  • 4.0
4.0 | 1 rating

Contact us at files@mathworks.com