List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Plotting problems with text
| [MUG] Plotting problems with text |
|
Author: Anthony C Gotts
Posted: 20/09/2000 16:24:37 GDT
|
>> From: "Anthony C Gotts"
Is it possible to put a title on a Maple plot that is more than one
line long ? Is it also possible to label the y-axis say, so that the
label runs parallel to the y-axis instead of perpendicular to it ?
Any help on these two problems would be much appreciated.
Anthony Gotts
CAMAC Research Group
Mathematics Division
School of MIS
Coventry University
Priory Street
CV1 5FB
|
| [MUG] Re: Plotting problems with text |
|
Author: Maple Group
Posted: 22/09/2000 22:10:18 GDT
|
>> From: Maple Group
On Wed, 20 Sep 2000, Anthony C Gotts wrote:
| Is it possible to put a title on a Maple plot that is more than one
| line long ? Is it also possible to label the y-axis say, so that the
| label runs parallel to the y-axis instead of perpendicular to it ?
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Thu, 21 Sep 2000 16:29:46 -0700 (PDT)
From: Robert Israel
To:
Subject: Plotting problems with text
Yes and yes. For the title, insert \n for newline. For the labels,
use the labeldirections option. Thus:
plot(x, x=0..1, labels=["x","y"], title="A Two Line\nTitle",
labeldirections=[HORIZONTAL,VERTICAL]);
Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Fri, 22 Sep 2000 03:16:53 -0400 (EDT)
From: Carl DeVore
To:
Subject: Plotting problems with text
Both of these things are possible in release 6. Here's an example:
> plot(x^2, x= -1..1
,labels= [`The x axis`, `The y axis`]
,labeldirections= [HORIZONTAL,VERTICAL]
,title= `Line 1\nLine 2`
);
The \n becomes the newline character in the title.
Carl Devore
University of Delaware
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Fri, 22 Sep 2000 10:36:04 +0200
From: Preben Alsholm
To:
Subject: Plotting problems with text
In Maple 6, yes to both questions. See ?plot,options
In Maple 5.1, no (I believe) to both questions.
Preben Alsholm
IFAK, DTU
Technical University of Denmark
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: Antonio Molina
To:
Subject: Plotting problems with text
Date: Fri, 22 Sep 2000 12:31:37 +0200
Dear Anthony,
Maple 6 let you do both things. Look at this example:
plot([x^2*sin(1/x),x^2,-x^2],x=-0.6..0.6,y=-0.1..0.1,
color=[red,blue,green],labels=["Eje x","Eje y"],
labeldirections=[HORIZONTAL,VERTICAL], legend=["x^2*sin(1/x)","curva
mayorante","curva minorante"], title="El Teorema de Sandwich\nDemostracion
Visual",titlefont=[TIMES,BOLDITALIC,14],tickmarks=[3,2]);
Regards,
Antonio
Antonio Molina Castellano
Mathematical Software Specialist
ADDLINK SOFTWARE CIENTIFICO
C/ Rosello, 205, 5th floor
08080 Barcelona (Spain)
Phone: +34 93 415 49 04
Fax: +34 93 415 72 68
http://www.addlink.es/
|
| [MUG] Plotting problems with text in MapleV4. |
|
Author: Anthony C Gotts
Posted: 05/10/2000 16:37:00 GDT
|
>> From: "Anthony C Gotts"
I have posed the following two questions before, but I'm afraid I
forgot to mention that I am currently using MapleV4 and have no
means of gaining access to higher Versions.
So,
Is it possible to put a title on a MapleV4 plot that is more than one
line long ? Is it also possible to label the y-axis say, so that the
label runs parallel to the y-axis instead of perpendicular to it ?
Again in MapleV4.
I did try the suggestions sent but none of them seem to work. For
a two line title the \n command just produces a square of circular
character but no new line and the use of || for combining strings is
not recognized in my version of Maple..
Anthony Gotts
CAMAC Research Group
Mathematics Division
School of MIS
Coventry University
Priory Street
CV1 5FB
|
| [MUG] Re: Plotting problems with text |
|
Author: Venkatramanan, Subramanian
Posted: 05/10/2000 21:01:53 GDT
|
>> From: "Venkatramanan, Subramanian"
Very useful information. Is it possible to have (distance, eta(in symbolic
form)) as label?( that is a combination of text and symbol)
I still use Maple V because I am not able to print Maple 6.(I use Windows
NT, pentium 3 processor)
The same program that consumes around 1MB RAM consumes more than 5 MB with
Maple 6 (the program produces 3 D graphs).
Venkat R. Subramanian
Ph.D. Candidate
Center for Electrochemical Engineering
Department of Chemical Engineering
University of South Carolina
Office: (803) 576 5634
Home: (803) 254 6255
http://www.engr.sc.edu/grad/venkatra
"It sure makes the day long when you get to work on time".
|
| [MUG] Re: Plotting problems with text |
|
Author: Robert Israel
Posted: 09/10/2000 18:49:54 GDT
|
>> From: Robert Israel
On Thu, 5 Oct 2000, Venkatramanan, Subramanian wrote:
> Very useful information. Is it possible to have (distance, eta(in symbolic
> form)) as label?( that is a combination of text and symbol)
It is not possible to combine ordinary text and symbols in one label.
However, you might be able to use "textplot" to produce two labels, one
in a text font and the other with the Symbol font. For example:
> with(plots):
P1:= plot(x^2,x=-1..1,axes=normal,labels=[``,``]):
P2:= textplot([0.7,-0.2,"(distance,"],align=LEFT):
P3:= textplot([0.7,-0.2,"h)"],align=RIGHT,font=[SYMBOL,10]):
display({P1,P2,P3});
Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
|
| [MUG] Re: Plotting problems with text |
|
Author: Douglas B Meade
Posted: 19/10/2000 14:14:20 GDT
|
>> From: "Douglas B. Meade"
Venkat,
The online help for plot,options describes how to change the font in the
title, axes, and elsewhere in a Maple plot. In your case, you would want
to specify a font of [SYMBOL,12] (or whatever size is appropriate).
You can set the font for the title(titlefont), tickmarks (axesfont), and
axis labels (labelfont) but cannot mix fonts within any one of these
categories. That is, both labels must use the same font. The only
workaround that I know for this problem is to use textplot to manually
put text in a precise location and format in a plot. See the online help
for textplot in the plots package.
Good luck,
Doug
-----------------------------------------------------------------------
Douglas B. Meade Phone: (803) 777-6183 FAX: (803) 777-6527
Department of Mathematics URL: http://www.math.sc.edu/~meade/
USC, Columbia, SC 29208 E-mail:
|
Previous by date: [MUG] Side by Side Plots, Nathan Sokalski
Next by date: [MUG] Re: Very limited Stack Size in Windows Version, Maple Group
Previous thread: [MUG] RootOf function, Tlovie
Next thread: [MUG] Very limited Stack Size in Windows Version, Helmut Kahovec
|