hello everyone,
this is my first time posting here so be nice ;-)
I am a bit new at unix scripting and have basically been hacking other peoples scripts to get them to do what I need. I have now hit a bit of a stop. This problem is very basic but I can't just seem to figure out how to get... (1 Reply)
I wish to replace values of specific parameters in an input file for batch runs of a java code. It's essentially a nested for-loop sorta like this:
valuearray1 contains values for param1
valuearray2 contains values for param2
for (all values in valuearray1)
go into specific position in... (2 Replies)
Hi Guys I have a question about filling up an array
I have a file called USER_FILE.txt
it contains the following:
Real Name:Thomas A Username:THOMAS_A
Real Name:Thomas B Username:THOMAS_B
Real Name:Thomas C Username:THOMAS_C
Real Name:Thomas D Username:THOMAS_D
Real Name:Thomas E... (8 Replies)
Hi,
I have an xml file which will be edited by the user.
I would like to get input from user and insert that at line 40 of the xml file.
PLease can some one help me to know how to insert the text at specified line using shell script. (6 Replies)
Hello All,
I'm attempting to use a text file as input to a specific field in a command. Below is the command...
Typically it looks like this
ans_dump testzone.com channel=dnsw32 | grep AAAA
I have about 500 zones I want to check... how do I use my text file as input where the zone name... (2 Replies)
I need to take a text file that holds a bunch of data and run each the stuff in it as an input for the program.
the file would hold stuff like this:
thing1.awesomesite.com 80 123.456
thing2.awesomesite.com 80 789.098
thing3.awesomesite.com 80 765.432
...
Now I already know the... (1 Reply)
Hi,
I am trying to populate an array with data from a text file. I have a working method using awk but it is too slow and inefficent. See below.
The text file has 70,000 lines. As awk is a line editor it reads each line of the file until it gets to the required line and then processes it.... (3 Replies)
In the attached bash file I am trying to add a block of code to add2text that will copy the input from match to a text file (file.txt).
For example, if from the menu choice 1 is select the user is asked for the id.... lets say that is 12345, after that id is matched and converted can it be added... (22 Replies)
Hello,
I have a file called COMPLIST as follows that contains 4 digit numbers.0002
0003
0010
0013
0015
0016
0022
0023
0024
0025
0027
0030
0031
0032
0033
0035
0038
0041 (3 Replies)
Discussion started by: sph90457
3 Replies
LEARN ABOUT DEBIAN
chart::strip
Strip(3pm) User Contributed Perl Documentation Strip(3pm)NAME
Chart::Strip - Draw strip chart type graphs.
SYNOPSIS
use Chart::Strip;
my $ch = Chart::Strip->new(
title => 'Happiness of our Group',
# other options ...
);
$ch->add_data( $davey_data, { style => 'line',
color => 'FF0000',
label => 'Davey' } );
$ch->add_data( $jenna_data, { style => 'line',
color => '00FF88',
label => 'Jenna' } );
print $ch->png();
DESCRIPTION
The Chart::Strip package plots data values versus time graphs, such as used for seismographs, EKGs, or network usage reports.
It can plot multiple data sets on one graph. It offers several styles of plots. It automatically determines the proper ranges and labels
for both axii.
USAGE
Create the Chart
$chart = Chart::Strip->new();
$chart = Chart::Strip->new(
option1 => value,
option2 => value,
);
If no options are specified, sensible default values will be used. The following options are recognized:
"width"
The width of the image
"height"
The height of the image.
"title"
The title of the graph. Will be placed centered at the top.
"x_label"
The label for the x axis. Will be placed centered at the bottom.
"y_label"
The label for the y axis. Will be placed vertically along the left side.
"draw_grid"
Should a grid be drawn on the graph?
"draw_border"
Should a border be drawn around the edge of the image?
"draw_tic_labels"
Should value labels be shown?
"draw_data_labels"
Should each data set be labeled?
"transparent"
Should the background be transparent?
"grid_on_top"
Should the grid be drawn over the data(1) or below the data(0)?
"binary"
Use powers of 2 instead of powers of 10 for the y axis labels.
"data_label_style"
Style for drawing the graph labels. "text" or "box"
"thickness"
Thickness of lines in pixels. (Requires GD newer than $VERSION).
"skip_undefined"
Don't draw a line into or out of a datapoint whose value is undefined. If false, undefined values are treated as though they were 0.
"boxwidth"
Width of boxes for box style graphs. The width may also be specified as "width" in the data options or per point. If no width is
specified a reasonable default is used.
Adding Data
$chart->add_data( $data, $options );
The data should be an array ref of data points. Each data point should be a hash ref containing:
{
time => $time_t, # must be a unix time_t
value => $value, # the data value
color => $color, # optional, used for this one point
}
or, range style graphs should contain:
{
time => $time_t, # must be a unix time_t
min => $low, # the minimum data value
max => $high, # the maximum data value
color => $color, # optional, used for this one point
}
and the options may contain:
{
style => 'line', # graph style: line, filled, range, points, box
color => 'FF00FF', # color used for the graph
label => 'New England', # name of the data set
}
points style graphs may specify the point diameter, as "diam"
box style graphs may specify the box width, as "width"
line and filled graphs may specify a "smooth" parameter, to connect points using smooth curves instead of straight lines. A value of 1 is
recommended, larger values will be less smooth.
line, points, box, and filled graphs may specify a drop shadow, consisting of a hashref containing "dx", "dy", "dw", and optionally,
"color"
shadow => { dx => 3, dy => 3, dw => 3, color => 'CCCCCC' }
Outputing The Image
$chart->png()
Will return the PNG image
$chart->jpeg()
Will return the jpeg image
$chart->gd()
Will return the underlying GD object.
EXAMPLE IMAGES
http://argus.tcp4me.com/shots.html
http://search.cpan.org/src/JAW/Chart-Strip-1.07/eg/index.html
LICENSE
This software may be copied and distributed under the terms found in the Perl "Artistic License".
A copy of the "Artistic License" may be found in the standard Perl distribution.
BUGS
There are no known bugs in the module.
SEE ALSO
Yellowstone National Park.
AUTHOR
Jeff Weisberg - http://www.tcp4me.com
perl v5.14.2 2012-03-18 Strip(3pm)