Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Plotting multiple 3d loops
Replies: 3   Last Post: Feb 8, 2013 8:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ulf Graewe

Posts: 14
Registered: 3/27/10
Re: Plotting multiple 3d loops
Posted: Feb 8, 2013 8:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> On another note, when I am plotting multiple datasets and over laying the figures, is it possible to change the linestyle for each dataset and also add a legend for each dataset added to each figure?

You could do:
for k = 1:5;
if ( j ==2 ); linestr='k-o'; end
figure(figcounter);plot(x_data(i,j,k), y_data(i,j,k),linestr);hold on
if ( j ==2 )
legend('Data 1','Data 2')
figcounter = figcounter + 1;

Does that do the trick?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.