File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Ploticus users : defining an output file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Ploticus users : defining an output file" Watch "Ploticus users : defining an output file" New topic
Author

Ploticus users : defining an output file

Rowan Brownlee
Ranch Hand

Joined: Aug 07, 2000
Posts: 97
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ploticus users : defining an output file