Rank: 861 based on 169 downloads (last 30 days) and 4 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
14 Mar 2014 Screenshot plt A framework for GUI designs with 2D plots.plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen data exploration, plot, plotyy, plotting, cursors, zooming 125 55
  • 4.46875
4.5 | 35 ratings
04 Dec 2013 prin.m - a powerful alternative to sprintf and fprintf If you've ever been frustrated with the %f/%e/%g FloatingPoint formats, try this sprintf alternative Author: Paul Mennen sprintf, fprintffloating point... 18 1
  • 5.0
5.0 | 1 rating
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 12 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 14 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Paul View all
Updated File Comments Rating
27 Nov 2013 plt A framework for GUI designs with 2D plots.plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen

Everytime I answer a support type question in the ratings section I suggest that email would be a better place to handle it, yet most people ignore this for some reason. Anyway ... to answer your question - you don't need "hold on" for doing this. Just combine your two plt statements into one. i.e. -

plt(x,[y1;y2],e1,e2)

- Also I suggest that you should look thru some of the examples in the demo folder since nearly every one does this kind of thing. Perhaps start with pltvbar.m since it also plots error bars as you are doing.
~Paul

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

Esmond - cluttering the file exchange ratings section with support questions is not necessary since my email address appears when you type "help plt" as well as in the intro section of the full help file (type "plt help"). But in answer to your question, look at the demo program "pltvbar.m" which plots multiple line and bar charts. That particular demo doesn't use the right hand axis as you wish to do, although most of the other demos do. In short, you specify which traces are to appear on the right axis with the 'right' parameter - e.g. 'right',[2 5 6] would instruct plt to put trace numbers 2,5,6 on the right axis and to put all other traces on the left axis. I hope this helps. Email me if you have further questions. ~Paul

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

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

05 Dec 2013 prin.m - a powerful alternative to sprintf and fprintf If you've ever been frustrated with the %f/%e/%g FloatingPoint formats, try this sprintf alternative Author: Paul Mennen Dalon, Thierry

Hi Paul
Great idea! It looks like it will become one of my most used Matlab function ;-)
Regarding sprintf for cell arrays see also Yair's post: http://undocumentedmatlab.com/blog/sprintfc-undocumented-helper-function/

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

Everytime I answer a support type question in the ratings section I suggest that email would be a better place to handle it, yet most people ignore this for some reason. Anyway ... to answer your question - you don't need "hold on" for doing this. Just combine your two plt statements into one. i.e. -

plt(x,[y1;y2],e1,e2)

- Also I suggest that you should look thru some of the examples in the demo folder since nearly every one does this kind of thing. Perhaps start with pltvbar.m since it also plots error bars as you are doing.
~Paul

27 Nov 2013 plt A framework for GUI designs with 2D plots.plot/plotyy alternativ optimized for data exploration. Author: Paul Mennen gargouri

hello
I need to use hold on
to plot on in the same time the Y function and the error bar (like errorbar in matlab)

e1=ebar(.....)
e2=ebar(.....)
plt(x, [y1;y2])
plt (e1,e2)

thanks :)

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

Esmond - cluttering the file exchange ratings section with support questions is not necessary since my email address appears when you type "help plt" as well as in the intro section of the full help file (type "plt help"). But in answer to your question, look at the demo program "pltvbar.m" which plots multiple line and bar charts. That particular demo doesn't use the right hand axis as you wish to do, although most of the other demos do. In short, you specify which traces are to appear on the right axis with the 'right' parameter - e.g. 'right',[2 5 6] would instruct plt to put trace numbers 2,5,6 on the right axis and to put all other traces on the left axis. I hope this helps. Email me if you have further questions. ~Paul

Contact us