Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I want to plot a curve with variables along the X & Y axis.

But I also want the plot to show multiple curves as a function of another third variable.

For example, if I'm plotting a curve of fruits vs. cost, I would get one curve.

But how to plot it for say, seven days of the week, thus showing seven curves in the same graph.

I would be doing this Matlab.

So if someone could guide me with the codes.

Hoping for a reply.

Thanks,

Prasad M. Rao.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Plot two variables as a function of the third one

**Physics Forums | Science Articles, Homework Help, Discussion**