Rank: 920 based on 92 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
08 Jun 2012 Screenshot plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen data exploration, plot, gui objects, plotting, subplots, zooming 81 49
  • 4.41379
4.4 | 32 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 5 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 6 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Paul View all
Updated File Comments Rating
17 Apr 2013 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen

Andreas - Most everyone prefers to use the dotted grid style so I didn't put an explicit option in for that. However after the call to plt you can change the grid to solid with the following command:

set(findobj(gcf,'user','grid'),'LineStyle','-')

Jeff - There is a way to force plt to do something like hold on/off but its messy and I wouldn't recommend it since it is so different from the work flow that I imagined for plt. Perhaps you could let me know what exactly you are trying to plot and I probably can suggest the best way for you to use plt to accomplish that. Also you might peruse the various demo programs for ideas on how best to use plt.

Christine - I'm not sure I understand your question exactly. Perhaps its just that you want to know what a color such as [x y z] looks like? If that's the question, the answer is pretty simple. The 3 numbers are the amount of Red, Green, and Blue in the selected color. (The numbers must be between 0 and 1. Plenty about that in the matlab documentation.) Here is a good way to see what any color selection will look like: In any plot created with plt, enable the menu bar by clicking on the "Menu" tag, then select the last menu ("Color/Lines"). Then select "Edit line". Then in the new figure that appears, RIGHT click on the 3 numbers below the line properties color popup. This will open the color pick window which initially will show you a palette of 256 colors possible with red=0. To see the palette with some other value of red, just move the red slider. Or move the green slider to force that amount of green and see a palette of colors that results. (Same for the blue slider of course). I hope that helps.

10 Nov 2011 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ 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 A framework for GUI designs with 2D plots. plot/plotyy alternativ 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 A framework for GUI designs with 2D plots. plot/plotyy alternativ 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 A framework for GUI designs with 2D plots. plot/plotyy alternativ 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

Comments and Ratings on Paul's Files View all
Updated File Comment by Comments Rating
17 Apr 2013 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen Mennen, Paul

Andreas - Most everyone prefers to use the dotted grid style so I didn't put an explicit option in for that. However after the call to plt you can change the grid to solid with the following command:

set(findobj(gcf,'user','grid'),'LineStyle','-')

Jeff - There is a way to force plt to do something like hold on/off but its messy and I wouldn't recommend it since it is so different from the work flow that I imagined for plt. Perhaps you could let me know what exactly you are trying to plot and I probably can suggest the best way for you to use plt to accomplish that. Also you might peruse the various demo programs for ideas on how best to use plt.

Christine - I'm not sure I understand your question exactly. Perhaps its just that you want to know what a color such as [x y z] looks like? If that's the question, the answer is pretty simple. The 3 numbers are the amount of Red, Green, and Blue in the selected color. (The numbers must be between 0 and 1. Plenty about that in the matlab documentation.) Here is a good way to see what any color selection will look like: In any plot created with plt, enable the menu bar by clicking on the "Menu" tag, then select the last menu ("Color/Lines"). Then select "Edit line". Then in the new figure that appears, RIGHT click on the 3 numbers below the line properties color popup. This will open the color pick window which initially will show you a palette of 256 colors possible with red=0. To see the palette with some other value of red, just move the red slider. Or move the green slider to force that amount of green and see a palette of colors that results. (Same for the blue slider of course). I hope that helps.

17 Apr 2013 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen Andreas

Looks and works great. However I can't find out how to change the grid line style from dashed to solid. Is it possible or could you implement it?

08 Apr 2013 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen Tibbals, Jeff

Is there a functionality similar to using 'hold on' for the normal 'plot' command?

26 Sep 2012 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen Christine

Is there a manual as to what numbers correspond to what colors and things like that for the changing of the line/grid/everything that is editable?

04 Sep 2012 plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen Cosma, Giorgio

I have used just few features of this function, but it's very easy to use and the opportunities it gives are infinite.
Very useful zooming and panning axes functions by using the mouse.

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
08 Jun 2012 Screenshot plt A framework for GUI designs with 2D plots. plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen data exploration, plot, gui objects, plotting, subplots, zooming 81 49
  • 4.41379
4.4 | 32 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 5 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 6 1
  • 4.0
4.0 | 1 rating

Contact us