 |
|
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
| [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
|
|
|