MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: question on Plot and Show plus Axis Labels:

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72564] Re: question on Plot and Show plus Axis Labels:
  • From: "Pratik Desai" <pratikd at wolfram.com>
  • Date: Tue, 9 Jan 2007 07:33:26 -0500 (EST)
  • References: <enpsva$e6q$1@smc.vnet.net>

Gopinath Venkatesan wrote:
> Objective: to plot several graphs in a single plot as well as use labels for axis, and different colors or dashing and other styles for individual plots to distinguish. What I want to know is what are the graphic format commands that would work with the command "Show" (because I tried RotateLabel and its not working with Show). Or please read the below for more details.
>
> I have y0, y, y1, and y2 as a list of values, and first I tried to plot all these list values using Plot (by default Plot function increments the x by fractions but in my case it is integer, like x={0,1,..10}; It didn't work. So I tried with ListPlot.
>
> p0 = ListPlot[Thread[y0, x], PlotJoined -> True]
> p = ListPlot[Thread[y, x], PlotJoined -> True]
> p1 = ListPlot[Thread[y1, x], PlotJoined -> True]
> p2 = ListPlot[Thread[y2, x], PlotJoined -> True]
> Show[p0, p, p1, p2, AxesLabel -> {"x-value", "y-value"}, RotateLabel -> True]
>
> And I used Show to plot all of them in a plot and tried to label the axis.
>
> 1. Problem is RotateLabel is not working with Show.
> 2. If I use a longer text label for axes (without RotateLabel option), the plot size gets smaller and text is as big as plots. Some scaling operation need to be done. no clue how to do this. Or should I change the font size of the text. I prefer not to change the text font size and keep the plot unscaled.
>
> Please share your suggestions and any examples. Thanks
>
> Gopinath Venkatesan
> Graduate Student
> University of Oklahoma

Hello Gopinath,

Why not use MultipleListPlot? This is available through  the Standard
packages
In your help browser
Go to Add-ons and Links->Graphics->MultipleListPlot


Hope this helps

Pratik Desai
Wolfram Research


  • Prev by Date: Re: question on Plot and Show plus Axis Labels:
  • Next by Date: Re: Replacements in NonCommutativeMultiply
  • Previous by thread: Re: question on Plot and Show plus Axis Labels:
  • Next by thread: Re: Re: question on Plot and Show plus Axis Labels: