• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Ploticus users : defining an output file

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I've begun investigating ploticus for use in a java based web application. I have a test app that executes ploticus to produce a graph based on a script called "myLines.htm". I'm having difficulty specifying an output file. I want to define a gif name, but am finding that the resulting file takes the default (ie "myLines.gif"), regardless of the specified output file.
However, if I simply execute ploticus via a batch file in a windows 98 dos session, the gif file is produced as required (ie "defName.gif");
The command line java code and script file follow. Any comments much
appreciated. - thanks - Rowan
commnd line used in a dos session on win98
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


source code for java test app
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


script file - mylines.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~
// Use proc page to set the overall text size to 6 pt
#proc page
textsize: 9

// read data file using proc getdata - params from command line
#proc getdata
file: @file
delimit: @delimit
// Define a plotting area using proc areadef
#proc areadef
title: Psychological performance
titledetails: adjust=0,0.1
//rectangle: 1 1 5 2
rectangle: 1 1 5 3.5
xrange: 0 20
yrange: 0 25
yaxis.grid: color=rgb(.6,.6,1)

// Define an X axis using proc xaxis
#proc xaxis
tics: none
label: Alternate Recording Days
// Define a Y axis using proc yaxis
#proc yaxis
stubs: incremental 5
label: Number of 'a' recordings
// Do the curve using proc lineplot
#proc lineplot
xfield: 1
yfield: 2
linedetails: color=red
pointsymbol: shape=square style=fill fillcolor=blue radius=0.02
numbers: yes
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic