- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- methods to convert text data to line charts
Operating System - HP-UX
1823415
Members
2694
Online
109655
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 05:27 AM
тАО06-02-2009 05:27 AM
I have text files with data in it. I want to filter it, and make line charts by day (or month, or minute, or...).
Here's one way I could do it. I have the text files. I use perl to filter and reformat them. I take the new formated text file and use perl with a linechart module to plot it. Or I could take the formated text file and throw it into excel to make a line chart. This seems primitive to me. I'm doing a lot of manual processes. I would like to automate it.
On the other hand, I have tons of flexibility because it is so primitive. I wouldn't want a fancy program that refuses to let me specify what data I want to plot. For example, I would not expect a program to give me blocks per second on disk c3t2d0 daily at 9:02am without weekends from 1Feb2006 until now. But I would expect a program to plot a column of numbers by date.
So has somebody already gone down this road? What did YOU do?
Here's one way I could do it. I have the text files. I use perl to filter and reformat them. I take the new formated text file and use perl with a linechart module to plot it. Or I could take the formated text file and throw it into excel to make a line chart. This seems primitive to me. I'm doing a lot of manual processes. I would like to automate it.
On the other hand, I have tons of flexibility because it is so primitive. I wouldn't want a fancy program that refuses to let me specify what data I want to plot. For example, I would not expect a program to give me blocks per second on disk c3t2d0 daily at 9:02am without weekends from 1Feb2006 until now. But I would expect a program to plot a column of numbers by date.
So has somebody already gone down this road? What did YOU do?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 05:35 AM
тАО06-02-2009 05:35 AM
Solution
Hi Steve:
I use Perl to do the parsing, summarizing and formatting. I find nothing intrinsically wrong with taking that output and importing it into Excel to make graphs. In fact, that has been the road I have traveled too.
After all, the Unix way is to do one thing well, passing input and output down a chain (pipe) of tools you cobble together to affect a solution.
Certainly some folks use the GNU plotting tools and that's fine too.
REgards!
...JRF...
I use Perl to do the parsing, summarizing and formatting. I find nothing intrinsically wrong with taking that output and importing it into Excel to make graphs. In fact, that has been the road I have traveled too.
After all, the Unix way is to do one thing well, passing input and output down a chain (pipe) of tools you cobble together to affect a solution.
Certainly some folks use the GNU plotting tools and that's fine too.
REgards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2009 06:23 AM
тАО06-03-2009 06:23 AM
Re: methods to convert text data to line charts
I waited on the points to see if anybody else would write.
It looks like gnuplot is exactly what I want.
I have the data in format:
mm/dd/yy ### ### ### ###
gnuplot> set xdata time
gnuplot> set timefmt "%m\/%d\/%y"
gnuplot> plot "day_7.dat" using 1:2 with lines,\
"day_7.dat" using 1:3 with lines,\
"day_7.dat" using 1:4 with lines
I hit return, and I get a nice graph.
Now I'm pretty sure I will be able to run gnuplot non-interactively from a perl script.
The biggest hurtle for me has been properly getting the date read in as the X axis. This gnuplot gets me past that hurtle.
thanks.
steve
It looks like gnuplot is exactly what I want.
I have the data in format:
mm/dd/yy ### ### ### ###
gnuplot> set xdata time
gnuplot> set timefmt "%m\/%d\/%y"
gnuplot> plot "day_7.dat" using 1:2 with lines,\
"day_7.dat" using 1:3 with lines,\
"day_7.dat" using 1:4 with lines
I hit return, and I get a nice graph.
Now I'm pretty sure I will be able to run gnuplot non-interactively from a perl script.
The biggest hurtle for me has been properly getting the date read in as the X axis. This gnuplot gets me past that hurtle.
thanks.
steve
- Tags:
- gnuplot
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP