Thread Subject: plot function

Subject: plot function

From: daniele

Date: 4 Feb, 2009 06:37:01

Message: 1 of 3

Hello,
is it possible to have a plot with 2 scales on the x axis corresponding to the same value on the y axis?
Thanks
Daniele

Subject: plot function

From: Walter Roberson

Date: 4 Feb, 2009 06:54:08

Message: 2 of 3

daniele wrote:

> is it possible to have a plot with 2 scales on the x axis corresponding to the same value
> on the y axis?

Matlab does not provide any function to do that. *Possibly* you could use plotyy()
to plot two different y axis against the same x, then use a hggroup() and hgrotate() to
rotate the view of the graph to its side...

But it if were me, I would check out the FEX contribution plt() to see whether perhaps
the possibility you want is one of the many options that are already built-in to
that contribution.

--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?

Subject: plot function

From: Paul Mennen

Date: 4 Feb, 2009 07:48:03

Message: 3 of 3

Hi Daniele. As Walter mentioned, it is likely that "plt" can be used to create
the plot you are need, although to be sure, you might have to be more clear
about what you need.

If you just want an alternate x-axis showing the same thing as the primary
x axis except using different units, that is pretty easy. In the plt distribution,
take a look at the example "demo\tasplt.m". Note that the lower x-axis has
the units "gph" and the upper x-axis has the units "percent power". In that
example, the two units are the same except for a scale factor difference, so
it is trivial to implement as you can see from the code.

> daniele wrote:
> is it possible to have a plot with 2 scales on the x axis corresponding to the same value
> on the y axis?
>
Walter Roberson wrote
> But it if were me, I would check out the FEX contribution plt() to see whether perhaps
> the possibility you want is one of the many options that are already built-in to
> that contribution.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
plot daniele 4 Feb, 2009 01:40:18
rssFeed for this Thread

Contact us at files@mathworks.com