Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with extracting data and plotting Post 302303832 by gingburg on Friday 3rd of April 2009 02:57:36 PM
Old 04-03-2009
Help with extracting data and plotting

I have attached a txt file, what I would like to be able to do is:
1. Extract Data from Columns labeled E/N and Ko into a new file
2. Then in the new file I would like to be able to plot E/N on the X axis and Ko on the y axis.
3. Lastly I would like to be able to extract multiple data sets and do this in one file so i can plot all my curves and see how they relate to each other.

Thank you as always for your help, you guys are great. Lenny.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting certain data from a sentence

How do I delete text in each line from the first character up to a certain pattern, ie. 'qmuser.' and then delete from the next occurence of a dot to the end of the sentence For example: - LTSB Renewal Notice Travel Pack --- d \qmaster\spool1\qmuser.8664_LM245_20031216094308.ps.0 From this... (7 Replies)
Discussion started by: dbrundrett
7 Replies

2. UNIX for Advanced & Expert Users

Gnuplot question: plotting 3D data in map view

I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this: - map view (no 3D view) - color of each point should depend on z-value. - I want to define my own color scale - plot should... (1 Reply)
Discussion started by: karman
1 Replies

3. Shell Programming and Scripting

Extracting ICMP Output for Plotting

Dear, I want to perform a plotting using xgraph, and the plotting data (ping.txt) is as below. For the graph I just want to plot the time for x-axis (line count) and the RTT for y-axis (time in ms). Below are script i write for that purpose but it seen did not work. Any guide for me because i... (1 Reply)
Discussion started by: Paris Heng
1 Replies

4. UNIX for Dummies Questions & Answers

Plotting Data within UNIX

I have a set of data that looks similar to the following in UNIX: 0.12_0.008_fall_ff.out:bisect return: 0.08056640625 0.12_0.04_fall_ff.out:bisect return: 0.07470703125 0.12_0.12_fall_ff.out:bisect return: 0.06298828125 0.12_0.24_fall_ff.out:bisect return: 0.05126953125 Previously I have... (4 Replies)
Discussion started by: EDALBNUG
4 Replies

5. UNIX for Dummies Questions & Answers

Extracting Data Using SED

Given the following text in a file named extract.txt: listenPort:=25 smtpDestination:=2 enableSSL:= I am trying to extract only the value 2 following smtpDestination:= Someone had suggested I use: sed -e "s/^smtpDestination:=\(.*\)$/\1/" extract.txt but this returns: listenPort:=25 2 ... (2 Replies)
Discussion started by: cleanden
2 Replies

6. Shell Programming and Scripting

extracting data from a string

Hi there, I have a bunch of vlan tagged network interfaces that are named as follows e1000g111000 e1000g99001 e1000g3456000 nge2002 where the 'e1000g' and 'nge' parts of the name are the driver, the red and blue bits above define the VLAN and the last digit on the end defines the... (3 Replies)
Discussion started by: rethink
3 Replies

7. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

8. Shell Programming and Scripting

extracting data

I have a txt file of the following format >ab_ qwerty >rt_ hfjkil >Ty2 hglashglkasghkf; >P2 aklhfklflkkgfgkfl >ui_ vnllkdskkkffkfkkf >we32 vksksjksj;lslsf'sk's's .... ..... I want to split this big file based on the header (>) (5 Replies)
Discussion started by: Lucky Ali
5 Replies

9. Shell Programming and Scripting

Help with extracting data within parentheses

This is my input file: a|b|c(ef)|g|h(km)|p My output file should look like: a|b|ef|g|km|p That is, pipe is the delimiter. The data within pipe must be displayed as it is but if it encounters any data within parentheses, then only the data within parentheses has to be displayed ( the data... (2 Replies)
Discussion started by: ksatish89
2 Replies

10. Shell Programming and Scripting

Fun with terminal plotting JSON data at the command line

One of the great thing about unix is the ability to pipe multiple programs together to manipulate data. Plain, unstructured text is the most common type of data that is passed between programs, but these days JSON is becoming more popular. I thought it would be fun to pipe together some command... (1 Reply)
Discussion started by: kbrazil
1 Replies
QwtPlotRescaler(3)						 Qwt User's Guide						QwtPlotRescaler(3)

NAME
QwtPlotRescaler - QwtPlotRescaler takes care of fixed aspect ratios for plot scales. SYNOPSIS
#include <qwt_plot_rescaler.h> Public Types enum ExpandingDirection { ExpandUp, ExpandDown, ExpandBoth } enum RescalePolicy { Fixed, Expanding, Fitting } Public Member Functions double aspectRatio (int axis) const QwtPlotCanvas * canvas () const QwtPlotCanvas * canvas () const virtual bool eventFilter (QObject *, QEvent *) ExpandingDirection expandingDirection (int axis) const QwtDoubleInterval intervalHint (int axis) const bool isEnabled () const QwtPlot * plot () const QwtPlot * plot () const QwtPlotRescaler (QwtPlotCanvas *, int referenceAxis=QwtPlot::xBottom, RescalePolicy=Expanding) int referenceAxis () const void rescale () const RescalePolicy rescalePolicy () const void setAspectRatio (int axis, double ratio) void setAspectRatio (double ratio) void setEnabled (bool) void setExpandingDirection (int axis, ExpandingDirection) void setExpandingDirection (ExpandingDirection) void setIntervalHint (int axis, const QwtDoubleInterval &) void setReferenceAxis (int axis) void setRescalePolicy (RescalePolicy) virtual ~QwtPlotRescaler () Protected Member Functions virtual void canvasResizeEvent (QResizeEvent *) QwtDoubleInterval expandInterval (const QwtDoubleInterval &, double width, ExpandingDirection) const virtual QwtDoubleInterval expandScale (int axis, const QSize &oldSize, const QSize &newSize) const QwtDoubleInterval interval (int axis) const Qt::Orientation orientation (int axis) const virtual void rescale (const QSize &oldSize, const QSize &newSize) const virtual QwtDoubleInterval syncScale (int axis, const QwtDoubleInterval &reference, const QSize &size) const virtual void updateScales (QwtDoubleInterval intervals[QwtPlot::axisCnt]) const Detailed Description QwtPlotRescaler takes care of fixed aspect ratios for plot scales. QwtPlotRescaler autoadjusts the axes of a QwtPlot according to fixed aspect ratios. Member Enumeration Documentation enum QwtPlotRescaler::RescalePolicy Rescale Policy. The rescale policy defines how to rescale the reference axis and their depending axes. o Fixed The interval of the reference axis remains unchanged, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio. o Expanding The interval of the reference axis will be shrinked/expanded, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio. The interval, that is represented by one pixel is fixed. o Fitting The intervals of the axes are calculated, so that all axes include their minimal interval. Constructor &; Destructor Documentation QwtPlotRescaler::QwtPlotRescaler (QwtPlotCanvas *canvas, intreferenceAxis = QwtPlot::xBottom, RescalePolicypolicy = Expanding) [explicit] Constructor Parameters: canvas Canvas referenceAxis Reference axis, see RescalePolicy policy Rescale policy See also: setRescalePolicy(), setReferenceAxis() QwtPlotRescaler::~QwtPlotRescaler () [virtual] Destructor. Member Function Documentation double QwtPlotRescaler::aspectRatio (intaxis) const Return aspect ratio between an axis and the reference axis. Parameters: axis Axis index ( see QwtPlot::AxisId ) See also: setAspectRatio() const QwtPlotCanvas * QwtPlotRescaler::canvas () const Returns: plot canvas QwtPlotCanvas * QwtPlotRescaler::canvas () Returns: plot canvas bool QwtPlotRescaler::eventFilter (QObject *o, QEvent *e) [virtual] Event filter for the plot canvas. QwtPlotRescaler::ExpandingDirection QwtPlotRescaler::expandingDirection (intaxis) const Return direction in which an axis should be expanded Parameters: axis Axis index ( see QwtPlot::AxisId ) See also: setExpandingDirection() QwtDoubleInterval QwtPlotRescaler::expandInterval (const QwtDoubleInterval &interval, doublewidth, ExpandingDirectiondirection) const [protected] Expand the interval Parameters: interval Interval to be expanded width Distance to be added to the interval direction Direction of the expand operation Returns: Expanded interval QwtDoubleInterval QwtPlotRescaler::expandScale (intaxis, const QSize &oldSize, const QSize &newSize) const [protected, virtual] Calculate the new scale interval of a plot axis Parameters: axis Axis index ( see QwtPlot::AxisId ) oldSize Previous size of the canvas newSize New size of the canvas Returns: Calculated new interval for the axis QwtDoubleInterval QwtPlotRescaler::interval (intaxis) const [protected] Return interval of an axis Parameters: axis Axis index ( see QwtPlot::AxisId ) bool QwtPlotRescaler::isEnabled () const Returns: true when enabled, false otherwise See also: setEnabled, eventFilter() Qt::Orientation QwtPlotRescaler::orientation (intaxis) const [protected] Return orientation of an axis Parameters: axis Axis index ( see QwtPlot::AxisId ) QwtPlot * QwtPlotRescaler::plot () Returns: plot widget const QwtPlot * QwtPlotRescaler::plot () const Returns: plot widget int QwtPlotRescaler::referenceAxis () const Returns: Reference axis ( see RescalePolicy ) See also: setReferenceAxis() void QwtPlotRescaler::rescale () const Adjust the plot axes scales. void QwtPlotRescaler::rescale (const QSize &oldSize, const QSize &newSize) const [protected, virtual] Adjust the plot axes scales Parameters: oldSize Previous size of the canvas newSize New size of the canvas QwtPlotRescaler::RescalePolicy QwtPlotRescaler::rescalePolicy () const Returns: Rescale policy See also: setRescalePolicy() void QwtPlotRescaler::setAspectRatio (intaxis, doubleratio) Set the aspect ratio between the scale of the reference axis and another scale. The default ratio is 1.0 Parameters: axis Axis index ( see QwtPlot::AxisId ) ratio Aspect ratio See also: aspectRatio() void QwtPlotRescaler::setAspectRatio (doubleratio) Set the aspect ratio between the scale of the reference axis and the other scales. The default ratio is 1.0 Parameters: ratio Aspect ratio See also: aspectRatio() void QwtPlotRescaler::setEnabled (boolon) En/disable the rescaler. When enabled is true an event filter is installed for the canvas, otherwise the event filter is removed. Parameters: on true or false See also: isEnabled(), eventFilter() void QwtPlotRescaler::setExpandingDirection (intaxis, ExpandingDirectiondirection) Set the direction in which an axis should be expanded Parameters: axis Axis index ( see QwtPlot::AxisId ) direction Direction See also: expandingDirection() void QwtPlotRescaler::setExpandingDirection (ExpandingDirectiondirection) Set the direction in which all axis should be expanded Parameters: direction Direction See also: expandingDirection() void QwtPlotRescaler::setReferenceAxis (intaxis) Set the reference axis ( see RescalePolicy ) Parameters: axis Axis index ( QwtPlot::Axis ) See also: referenceAxis() void QwtPlotRescaler::setRescalePolicy (RescalePolicypolicy) Change the rescale policy Parameters: policy Rescale policy See also: rescalePolicy() QwtDoubleInterval QwtPlotRescaler::syncScale (intaxis, const QwtDoubleInterval &reference, const QSize &size) const [protected, virtual] Synchronize an axis scale according to the scale of the reference axis Parameters: axis Axis index ( see QwtPlot::AxisId ) reference Interval of the reference axis size Size of the canvas void QwtPlotRescaler::updateScales (QwtDoubleIntervalintervals[QwtPlot::axisCnt]) const [protected, virtual] Update the axes scales Parameters: intervals Scale intervals Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtPlotRescaler(3)
All times are GMT -4. The time now is 04:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy