Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Watch Maple Video Demonstrations
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 16 Overview
Maple 16 Professional
Maple 16 Academic
Maple 16 Student Use
What's New in Maple 16
Maple New Features
Datasheet

Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Plotting problems with text

Search email archive for  

[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



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Maple 16 & MapleSim 5 Professional Brochure
Maple 16 Academic Datasheet
Maple 16 & MapleSim 5 Academic Brochure
Maple 16 What is New datasheet
Maple 16 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple 16 Programming Guide
Maple 16 User Manual
Maple 16 Academic Datasheet
Maple 16 Professional Datasheet
Maple 16 & MapleSim 5 Academic Brochure

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks

Latest News

Connectivity to major CAD systems extended in Maple 16
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
Maths software usability reaches new heights with Maple 16
"MapleSim was an eye-opener for us.
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055