General :: Plot Stem-and-leaf Plot Using Perl?
Nov 11, 2010
I'm curious if anyone know how to plot stem-and-leaf plot using perl? Basically, what I was wanting to do is read a bunch of numbers from a text file into an array, sort from smallest to biggest, and plot the following (last digit serves as the "leaf", so for example, for the following graph, going down from top to bottom is 7, 7, 12, 13, 18, 18, 23, 25, 27, 27, 27, 27, 27, 27, 28, 28, 29, 59, 30, 31, 31 etc.):
[Code]....
View 1 Replies
ADVERTISEMENT
Mar 6, 2011
I want to use xplot in order to plot a spectrum but when I executed the code by typing "xplot qso.fits" in terminal it returned the following error one after the other so I was force to stop the program using "Ctrl + C". (I am using Ubuntu 10.4 and I have also PGPLOT installed on my Linux).
[Code]...
View 1 Replies
View Related
Sep 28, 2010
I want to plot band structure using Wien2k and for this I have to make a file named "case.klist_band". But I have a Rhomhedral compound . There is written to make the file using xcrysden but I donot know how to make the file from xcrysden.
View 2 Replies
View Related
Mar 20, 2011
how can i plot x graph Ubuntu by using awk scripts indicating how can i change awk files into xgr files,
View 13 Replies
View Related
Jun 28, 2014
I need some C++ graphical lib to work with gtk+.
What I want is to plot like jQplot: [URL] .....
View 1 Replies
View Related
Jul 8, 2011
I'm using 64-bit fedora 14 on my desktop. i was using gnuplot, but there was some power failure and my computer got shut down. now whenever i plot anything it freezes after first plot i have to force quit it
View 7 Replies
View Related
May 17, 2010
I have openSUSE 11.1, DELL vostro 1500 with NVIDIA card (Which type?). I am runnnig SCilab 5.1.1 which crashes on plot. The same scilab runs on the same computer through Windows Vista (I have dual boot). I suppose this is a linux problem.
View 1 Replies
View Related
Mar 22, 2011
how do i plot the trace file into a graph? can any 1 show an example here? just any trace file will do
View 13 Replies
View Related
Apr 6, 2010
It's been a while since I did any kind of graphics programming, but I would like to start learning how to do graphics stuff in *nix. I started reading the GTK+ 2.0 Tutorial, but a) I've only been able to write a small "Hello World" program, and that tested my patience, and b) I'm not seeing anything which allows you to plot a pixel directly. Back before I migrated to Linux, I used the Windows GDI SetPixel() function for plotting pixels sequentially (this was for a small fractal generator). Mostly what I'm asking is if there's any kind of equivalent function in *nix graphics APIs? GTK+? Would I have to deal with SDL/OpenGL?
View 3 Replies
View Related
Oct 28, 2010
How do I plot error bars for say, every 100th point, instead of for every single point? At the moment my plot looks like a thick band instead of a thin curve, since every point has an error bar attached to it.
View 2 Replies
View Related
Apr 1, 2010
I am new to gnuplot linux based plotting tool. I am trying to plot data from multiple data files and I want each plot to be open in a separate window. This is not happening in gnuplot script I have written, it holds the current window and plots the next data on the same window.A way I found to see separate plots was to use multiplot, but this plots multiple plots in the same window. Can someone tell me how to plot multiple plots in separate window in gnuplot? I could not find the answer in documentation/man pages.
[Code]...
View 1 Replies
View Related
May 10, 2011
I'm running Maverick on an HP dv6 laptop. I tried recording a video via VLC with the machine's 'TrueVision' webcam. The result seemed to lack audio, so I had a look in preferences > sound. The input tab had the mute button ticked, so I unticked it and tried adjusting the level (while realising I was probably just configuring the mic port and not the webcam's inbuilt mics).
Then things turned bad: pointer became sluggish, and changes I made to the level slider took ages to be reflected visually on screen. I queued up a pile of clicks on the 'close' button and went away for a while. On return, I was met with a box inviting me to stop a script with some screen-width-long incomprehensible name, which of course I did.
Now the system's in a state which sees windows missing title bars (tho' not menu bars) and (more problematically) the upper and lower bars on the desktop absent. I issued a hibernate command from the terminal in the hope that on waking the system would be 'fixed', but nothing changed. I tried alt-tabbing to access my open applications and close them gracefully but this command is ignored. I have 'zillions' of apps going with unsaved data and am not sure what to try next. I'd be happy just to be able to task switch to each open prog and exit it gracefully then restart. But my knowledge of the command line is such that your help is required =) .
View 6 Replies
View Related
Aug 5, 2011
The current Octave 3.4.0 on Fedora 15 is giving me an "out of memory" message when I plot certain data. See example below. It depends on the range, and the particular function. Anyone else get this behaviour?
[code]...
View 3 Replies
View Related
Sep 4, 2010
I would like to use a package manager to generate a list of all installed packages that are not depended on by any other installed package. That is to say, a list of installed packages that are not required by any other installed package. I believe these are referred to as packages with 0 forward dependencies. I believe they are also called "leaves."
I am on Red Hat, so a method of doing this with rpm, yum or smart would be optimal. I discovered the package-cleanup program that is a part of yum-utils. According to package-cleanup's man page, the option --leaves will "list leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM." I thought this would do what I wanted, but it seems to do a poor job. It listed only two packages. While those two packages are indeed required by nothing else, I am sure there are many more than two on my system. (For example, it did not list firefox)
View 1 Replies
View Related
Jul 12, 2010
if i wanna to compile the unrealircd ircd server with max 150 users what i have to do i remember is on limits.conf the open filesbut i am comfusing the soft and hardmust have the same number !? or different?the second is if i wanna this shell when the user download the pack and he going to make compile to allow him to have only the option to compile in leaf mode and not hubso
View 1 Replies
View Related
Feb 20, 2010
I am searching for a program which may be used in order to display a list of "leaf" packages (i.e. installed packages upon which no other installed packages depend), but only those "leaf" packages which are not marked as being mandatory packages belonging to some installed group. For example, assume we have package group "Example" which comprises the following packages:
core-package-one [ MANDATORY; installed; ]
core-package-two [ MANDATORY; installed; ]
extra-package-alpha [ OPTIONAL; installed; not required by any other package; ]
extra-package-beta [ OPTIONAL; installed; required by extra-package-alpha; ]
extra-package-delta [ OPTIONAL; not installed; ]
Format: <package name> [ <group priority>; <install status>; <leaf status> ]
[Code]....
If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?
View 2 Replies
View Related
Dec 17, 2010
I have a small problem with Perl and Apache.
If I use "#!/usr/bin/perl" in the beginning of a perl script the script won't work if the script is at all complicated. Simple scripts like "Hello World" works.
But if I use "#!/usr/bin/perl -w" in the beginning all scripts work?
If I don't use the -w this is whats in the logs:
(2)No such file or directory: exec of '/home/test.net/html/cgi-bin/uh/meny.pl' failed
Premature end of script headers: meny.pl
When I use the -w in the script the error-log shows me this.
meny.pl: Name "main::http_path_cgi" used only once: possible typo at /home/test.net/html/cgi-bin/uh/meny.pl line 24.
View 1 Replies
View Related
Aug 11, 2010
I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?
View 7 Replies
View Related
Jul 7, 2010
I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?
conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'
[code]...
View 2 Replies
View Related
Aug 14, 2010
I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.
So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?
The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.
View 7 Replies
View Related
Jun 28, 2010
I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.
[Code]...
View 5 Replies
View Related
Apr 8, 2009
I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run
Code:
ndiswrapper -l
i am getting the error
Code:
/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv
View 11 Replies
View Related
Jun 2, 2011
I am unable to run perl-cgi script in my cent os Apache server. I have used locate perl command in terminal window and it gives following result:
[code]....
tell which is the path to perl for example "usr/bin perl"
View 13 Replies
View Related
Oct 5, 2010
I Installed perl-doc in ubuntu 10.04 using sudo apt-get install perl-doc,in the same way I installed doc for postgreSQL. How to use perl-doc so that I can get from perl-doc.
View 2 Replies
View Related
Jul 16, 2010
I want the output of this file to be in a column, not next to each ohter. I tired putting a a newline escape character in a few places, but it breaks the script. It is easy in awk, just ls -ltr | awk '{print $8 }'
casper@casper-laptop:~$ pwd
/home/casper
casper@casper-laptop:~$ ls -ltr > /tmp/outfile
casper@casper-laptop:~$ cat -n /tmp/moreawkreplace
1#!/usr/bin/perl
[Code].....
View 1 Replies
View Related
May 1, 2011
I had a problem recently, where a perl script was consuming server resources. I found out it was a perl script by using "top". But it didn't give the path to the script. Nor did ps.Also, ps -ef showed that the process with that pid is /usr/bin/httpd (apache), so it must have been apache serving some perl page I suppose.Is it possible to get the path to currently running perl script, if I only know the process PID of the perl process that is running that script? If so, how? I don't need the path to the perl binary, I need the path to the perl script that binary is currently executing.
View 2 Replies
View Related
May 21, 2011
I am making some scripts to automaticly install linux-software.gcc,kernel,binutils, etc.) I have made a command to extract the packages, but how can I check if I can re-use my already extracted source-archives?
View 3 Replies
View Related
Jan 20, 2011
I'm trying to simply pull a line (semi-static entry) from an xml file online with a shell script, or perl script. Basically, I've got a URL that loads an XML file. From this file I want to pull a text entry:
<blah xml code blah 'http://static.address.com/static_directory/dynamic_filename.123' blah xml code blah>
I would like to do this from a shell or perl script. I would like to parse the xml file so that it just pulls the http - .123 information and ends there, that's the only information I need. it will then run a local command on this file.
View 1 Replies
View Related
Oct 27, 2009
I want to compare two files in perl, I have two files file1.txt & file2.txt. if column1 on file2.txt match column1 on file1.txt then I want my result on file3.txt (column1 column2 file1.txt + column1 column2 column3 file2.txt). this problem was solved with "awk" but I want to do in perl.
file1.txt
---------
column1 column2
------- -------
linux-2049 1
linux-2817 1
[code]....
View 5 Replies
View Related
Feb 8, 2011
I am trying to use awk command in perl. Below is my awk comamnd which works alone.
awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat
I would like to use this awk's output in shell script. I am using system command like below to get the out put. But it is not working.
$Output = system("awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat'");
View 3 Replies
View Related