Template Files in Chart Builder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Template Files in Chart Builder

Atai Winkler
Hi

I am using IBM Statistics v25 and have a problem wit the Chart Builder
function. I did not have this problem with earlier versions and so I would
be grateful if someone could help me – thank you in advance.

Below is the group scatter plot that is generated using the following syntax
(generated by Paste) and after a few small manual changes.


* Chart Builder.
  GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=failure_period pc_failure_mode
failure_mode_1
    MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE
  /FITLINE TOTAL=NO SUBGROUP=NO.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: failure_period=col(source(s), name("failure_period"))
  DATA: pc_failure_mode=col(source(s), name("pc_failure_mode"))
  DATA: failure_mode_1=col(source(s), name("failure_mode_1"),
unit.category())
  GUIDE: axis(dim(1), label("Failure period (years)"))
  GUIDE: axis(dim(2), label("Percent failed assets"))
  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Failure mode"))
  ELEMENT: point(position(failure_period*pc_failure_mode),
color.interior(failure_mode_1))
END GPL.

<http://spssx-discussion.1045642.n5.nabble.com/file/t341438/orig.jpg>

I want to change a few aspects of the graph. I have done this manually for a
number of identical graphs (they are the outputs of a simulation program).
The new version is

<http://spssx-discussion.1045642.n5.nabble.com/file/t341438/final_image.png>
.

Once again, thank you.

Atai





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Template Files in Chart Builder

PRogman
Exactly what is your problem?
Have you altered several graphs with identical steps you really should read
about using Templates. Do your changes and then save your changes as a
template.

When you use Chart Editor: File>Save Chart Template... or File>Apply Chart
Template...

If you already have a template file it (actually multiple) can be selected
in the Chart Builder if you press the 'Option'-button. it adds a TEMPLATE
=[...] command to the ggraph syntax.

PR



Atai Winkler wrote

> Hi
>
> I am using IBM Statistics v25 and have a problem wit the Chart Builder
> function. I did not have this problem with earlier versions and so I would
> be grateful if someone could help me – thank you in advance.
>
> Below is the group scatter plot that is generated using the following
> syntax
> (generated by Paste) and after a few small manual changes.
>
>
> * Chart Builder.
>   GGRAPH
>   /GRAPHDATASET NAME="graphdataset" VARIABLES=failure_period
> pc_failure_mode
> failure_mode_1
>     MISSING=LISTWISE REPORTMISSING=NO
>   /GRAPHSPEC SOURCE=INLINE
>   /FITLINE TOTAL=NO SUBGROUP=NO.
> BEGIN GPL
>   SOURCE: s=userSource(id("graphdataset"))
>   DATA: failure_period=col(source(s), name("failure_period"))
>   DATA: pc_failure_mode=col(source(s), name("pc_failure_mode"))
>   DATA: failure_mode_1=col(source(s), name("failure_mode_1"),
> unit.category())
>   GUIDE: axis(dim(1), label("Failure period (years)"))
>   GUIDE: axis(dim(2), label("Percent failed assets"))
>   GUIDE: legend(aesthetic(aesthetic.color.interior), label("Failure
> mode"))
>   ELEMENT: point(position(failure_period*pc_failure_mode),
> color.interior(failure_mode_1))
> END GPL.
>
> &lt;http://spssx-discussion.1045642.n5.nabble.com/file/t341438/orig.jpg&gt; 
>
> I want to change a few aspects of the graph. I have done this manually for
> a
> number of identical graphs (they are the outputs of a simulation program).
> The new version is
>
> &lt;http://spssx-discussion.1045642.n5.nabble.com/file/t341438/final_image.png&gt;
> .
>
> Once again, thank you.
>
> Atai
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD