Gnuplot spitting junk to CL, saying file not found
Hi,
I am making a shell script in bash which uses gnuplot to plot the number of road accidents on a certain day, on a certain month. I believe I have the data correct. An example of my data file is here:
(So the left column [x axis] is the month, and the second [y] is the number of accidents, and the whole data set is for "monday")
But I cant seem to get gnuplot to make me an image, I tried putting in a <gpi> script, I got a simple graph(not what i wanted though) but then it didnt seem to want to plot, and there are problems with importing file name etc
Currently the code spits loads of unusual character to the command line, and then says the file is not found....
Here is my gnuplot code, if anyone can point me in the right direction I would be very grateful
Thanks
Last edited by bartus11; 12-02-2013 at 05:47 PM..
Reason: Please use code tags
I have a file with one of the following lines, when opened with vi
33560010686GPT£120600GBPGBP10082007DS
In the above line, I want to get rid of the junk character before the £ (pound sysmbol).
When I tried copying £ from windows and copy in unix vi, it prints as £ and I tried pattern replace... (2 Replies)
Hi
set filename "./GopiRun.sh"
if } err] {
writeLog "error in exec "
writeLog $a
} else {
writeLog $a
}
The above code will execute a file GopiRun.sh,and will log the output of the exec to a file.
The problem is the file has lot of junk character in it,how to avoid it.
The... (2 Replies)
Can anyone tell me how to read a file in perl having junk characters . I have only one junk character which is repeated many times in the file. While i'm reading and printing the file , it is displaying till the 1st occurence of that junk character and rest of the file is not being read. (1 Reply)
Hi Team,
I have a file having size greater than 1 GB. What i want to do is to check if it contains any JUNK character (ie any special charater thats not on the key board stroke). This file has 532 column & seperated with ^~^.
I have found some solution from the file, but it is for a... (4 Replies)
Hi
I can't figure out why i get the "unexpected end of file".
#! /bin/bash
for file1 in /figures/*; do
gnuplot << EOF
set terminal postscript eps color enhanced
set output "$file1.eps"
set bar 1.000000
... (2 Replies)
hi guys,
I am generating a file from datastage (an etl tool).
Now the file is having some junk characters like ( Á,L´±,ñ and so on)..
I want to use the grep function to figure out all the junk characters and their location.
Can somebody help me out in finding it out.. if possible i... (1 Reply)
Hello,
I have two .sql files which I transferred from Windows to Unix (Linux Enterprise Linux Server release 5.3).I want to ensure that these two files have no junk characters in them.How do I do it in the simplest possible way?
Many thanks
DJ (1 Reply)
I am using flatfile, in that flat file we are getting the junk chars
1)I21001f<82>^Me<85>!h49 Service Charge
2) I21001f‚
e...!h49 Service Charge
please tell me how to remove all junk chars in unix scripts. (1 Reply)
Hi
I want to know how to see junk character in a file.
i am not able to see junk character using vi or cat command.
below is the junk char . which i see in host file
10.178.14.67▒▒▒ ac01sp02-vip
actually it should be like this
10.178.14.67 ac01sp02-vip
i am using secure CRT... (11 Replies)
if i have +2, i want this to be + 2 as separate columns. Doing this for a large column so I cannot do it manually. (3 Replies)
Discussion started by: ripchint
3 Replies
LEARN ABOUT NETBSD
plotchangelog
PLOTCHANGELOG(1) General Commands Manual PLOTCHANGELOG(1)NAME
plotchangelog - graph debian changelogs
SYNOPSIS
plotchangelog [options] changelog ...
DESCRIPTION
plotchangelog is a tool to aid in visualizing a Debian changelog. The changelogs are graphed with gnuplot(1) , with the X axis of the graph
denoting time of release and the Y axis denoting the debian version number of the package. Each individual release of the package is repre-
sented by a point, and the points are color coded to indicate who released that version of the package. The upstream version number of the
package can also be labeled on the graph.
Alternatively, the Y axis can be configured to display the size of the changelog entry for each new version. Or it can be configured to
display approximately how many bugs were fixed for each new version.
Note that if the package is a debian-specific package, the entire package version will be used for the Y axis. This does not always work
perfectly.
READING THE GRAPH
The general outline of a package's graph is typically a series of peaks, starting at 1, going up to n, and then returning abruptly to 1.
The higher the peaks, the more releases the maintainer made between new upstream versions of the package. If a package is debian-only, it's
graph will just grow upwards without ever falling (although a bug in this program may cause it to fall sometimes, if the version number
goes from say, 0.9 to say, 0.10 - this is interpreted wrong..)
If the graph dips below 1, someone made a NMU of the package and upgraded it to a new upstream version, thus setting the debian version to
0. NMU's in general appear as fractional points like 1.1, 2.1, etc. A NMU can also be easily detected by looking at the points that repre-
sent which maintainer uploaded the package -- a solitary point of a different type than the points before and after it is typically a NMU.
It's also easy to tell by looking at the points when a package changes maintainers.
OPTIONS -l, --linecount
Instead of using the debian version number as the Y axis, use the number of lines in the changelog entry for each version. Cannot
be used together with --bugcount.
-b, --bugcount
Instead of using the debian version number as the Y axis, use the number of bugs that were closed by each changelog entry. Note that
this number is obtained by searching for "#dddd" in the changelog, and so it may be inaccurate. Cannot be used together with
--linecount.
-c, --cumulative
When used together with either --bugcount or --linecount, graphs the cumulative count rather than the count in each individual
changelog entry.
-v, --no-version
Do not show upstream version labels. Useful if the graph gets too crowded.
-m, --no-maint
Do not differentiate between different maintainers of the package.
-s file, --save=file
Save the graph to file in postscript format instead of immediately displaying it.
-u, --urgency
Use larger points when displaying higher-urgency package uploads.
--verbose
Output the gnuplot script that is fed into gnuplot (for debugging purposes).
-gcommands, --gnuplot=commands
This allows you to insert gnuplot(1) commands into the gnuplot script that is used to generate the graph. The commands are placed
after all initialization but before the final plot command. This can be used to override the default look provided by this program
in arbitrary ways. You can also use things like "set terminal png color" to change the output file type, which is useful in conjunc-
tion with the -s option.
--help Show a usage summary.
--version
Display version, author and copyright information.
--noconf, --no-conf
Do not read any configuration files (see below).
changelog ...
The changelog files to graph. If multiple files are specified they will all be display on the same graph. The files may be com-
pressed with gzip. Any text in them that is not in Debian changelog format will be ignored.
CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables.
The --no-conf option can be used to prevent reading these files. Environment variable settings are ignored when these configuration files
are read. The currently recognised variables are:
PLOTCHANGELOG_OPTIONS
This is a space-separated list of options to always use, for example -l -b. Do not include -g or --gnuplot among this list as it
may be ignored; see the next variable instead.
PLOTCHANGELOG_GNUPLOT
These are gnuplot commands which will be prepended to any such commands given on the command line.
SEE ALSO devscripts.conf(5).
AUTHOR
Joey Hess <joey@kitenet.net>
DEBIAN Debian Utilities PLOTCHANGELOG(1)