Adept Scientific - English
The world's best software 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  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

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] plot to ps file from within proc

Search email archive for  

[MUG] plot to ps file from within proc
Author: Nld    Posted: Fri, 30 Aug 2002 10:13:49 +0200

>> From: nld "nld"

This is a multi-part message in MIME format.
--------------99DB9DC79DC2B96461B059FC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



> Dear Mug,
>
> while I can easily create a ps file from a plot object in a
> worksheet using the plotsetup command, this does not
> seem to work from within a procedure.
>
> Below there is an example for a procedure which fails
> to create a postscript file. Can someone please advise?
>

Please note that I tried out some of the hints to former
similar requests to MUG. However they did not work.
I use i386 linux, kernel 2.4.10, KDE2.2.1, and maple7.

>
> Thank you very much,
> Martin
>
> > p:= plot(sin(x), x= 0..2*Pi):
> > ###########
> > # following command block creates postscript file
> > # as expected
> > ###########
> > plotsetup(
> > ps,
> > plotoutput= "/home/mmo/tmp/tmp.ps"
> > );
> > plots[display](p);
> > plotsetup(
> > default
> > );
> > ###########
> > # following procedure does not create any file
> > ###########
> > MyProc:= proc()
> >
> > local p;
> >
> > p:= plot(sin(x), x= 0..2*Pi);
> > plots[plotsetup](
> > ps,
> > plotoutput= "/home/mmo/tmp/tmp.ps"
> > );
> > plots[display](p); does not work
> > # print(plots[display](p)); does not work either
> > # print(p); does not work either
> > latex(p);
> > plots[plotsetup](
> > default
> > );
> > return();
> > end proc; # MyProc

--------------99DB9DC79DC2B96461B059FC
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: "3D624EAD.68967B55"
Date: Tue, 20 Aug 2002 16:14:05 +0200
From: nld "nld"
Reply-To: "nld"
X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: mug "maple-list"
Subject: plot to ps file from within proc
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dear Mug,

while I can easily create a ps file from a plot object in a
worksheet using the plotsetup command, this does not
seem to work from within a procedure.

Below there is an example for a procedure which fails
to create a postscript file. Can someone please advise?

Thank you very much,
Martin

> p:= plot(sin(x), x= 0..2*Pi):
> ###########
> # following command block creates postscript file
> # as expected
> ###########
> plotsetup(
> ps,
> plotoutput= "/home/mmo/tmp/tmp.ps"
> );
> plots[display](p);
> plotsetup(
> default
> );
> ###########
> # following procedure does not create any file
> ###########
> MyProc:= proc()
>
> local p;
>
> p:= plot(sin(x), x= 0..2*Pi);
> plots[plotsetup](
> ps,
> plotoutput= "/home/mmo/tmp/tmp.ps"
> );
> plots[display](p); does not work
> # print(plots[display](p)); does not work either
> # print(p); does not work either
> latex(p);
> plots[plotsetup](
> default
> );
> return();
> end proc; # MyProc



--------------99DB9DC79DC2B96461B059FC--

[View Complete Thread]



Previous by date: [MUG] Re: yp := (t) -> %;,  Dr Francis J Wright
Next by date: [MUG] New Warnings package for Maple8, Douglas Wilhelm Harder
Previous thread: [MUG] Numerical optimization,  Dr Francis J Wright
Next thread: [MUG] New Warnings package for Maple8, Douglas Wilhelm Harder



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

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
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

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