Sponsored Content
Special Forums UNIX and Linux Applications Gnuplot Same Data Two Axes Different Units) Post 302816149 by TC69 on Monday 3rd of June 2013 11:17:53 AM
Old 06-03-2013
Thanks for the reply! But I think that's the result I'm trying to avoid....

That would mean I have to plot my dataset twice, and the left and right axes would both be linear or a logscale or whatever I chose, right?

I guess another what to phrase what I'm looking for is that I want the right axis to be a transform of the left axis's y-value. So it would look like this

Code:
y1    ->Directly Across-> y2
4-----------------------------1/4
3-----------------------------1/3
2-----------------------------1/2
1-----------------------------1
0.5---------------------------2

So, see the y2 axis has to be aligned with a specific value on y1.
The only way I can think of doing it is if I make a graph with a set scale on y1 and x1, and then add labels manually to y2. So for instance....

Code:
set xrange [0:1]
set yrange [2:4]
set label "1/2" at first 1,first 2
set label "1/3" at first 1,first 3
set label "1/4" at first 1,first 4

But I was hoping there's something more elegant and flexible....?

I'll try and upload a better image of what I'm talking about because I think my words are muddled...

Last edited by Scott; 06-03-2013 at 02:06 PM.. Reason: Please use code tags for code and data
 

7 More Discussions You Might Find Interesting

1. 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

2. Hardware

Units in server racks

What does the term units mean in the context of server racks, for instance 4U? It is an indication of height, so does that mean the amount of disks the rack can hold or can the rack hold multiple motherboards / processors? (8 Replies)
Discussion started by: figaro
8 Replies

3. Programming

GNUPLOT- how to change the style of data points

Hi, I am trying to arrange my graphs with GNUPLOT. Although it looked like simple at the beginning, I could not figure out an answer for the following: I want to change the style of my data points (not the line, just exact data points) The terminal assigns first + and then x to them but what I... (0 Replies)
Discussion started by: natasha
0 Replies

4. UNIX for Dummies Questions & Answers

Fitting data in gnuplot with xyerrorbars

I was looking at the examples that show how to fit data using gnuplot (ex: gnuplot / misc (2E)) but I can't find a place that shows what to do if I have ranges for the x and y error bars. I tried the common sense: gnuplot> fit f(x) "data.txt" using 3:6:4:5:7:8 via a,b ... (8 Replies)
Discussion started by: cosmologist
8 Replies

5. Shell Programming and Scripting

placeholder in gnuplot data

My input data has occasional holes in it, spots where a sensor couldn't be read. These are ERR in the data file instead of a floating point number. What should I change them to, for gnuplot to ignore these values instead of whining about them? (1 Reply)
Discussion started by: Corona688
1 Replies

6. Shell Programming and Scripting

Parsing file: preparing data for charts (gnuplot, calc,...)

Hi there, I have files (tsv) like this: CTLPort IO Rate(IOPS) Read Hit(%) Write Hit(%) Timestamp 0A 136 97 100 09:36:48 0B 3 100 100 09:36:48 0C 88 35 100 09:36:48 0A 87 100 100 09:37:49 0B 3 97 100 09:37:49 0C 83 45 100 09:37:49 0A 108 83 100 09:38:48 0B 3 100 100 09:38:48... (1 Reply)
Discussion started by: gray380
1 Replies

7. Shell Programming and Scripting

Gnuplot Time Data Question

I have a data file of the following format: servername,2013-05-11 17:46:03,SomeText,195,195,11,202 servername,2013-05-11 17:47:03,SomeText,192,192,23,103 servername,2013-05-11 17:48:03,SomeText,189,190,14,117 servername,2013-05-11 17:49:03,SomeText,196,195,24,231 ... ... I want to... (0 Replies)
Discussion started by: BeeryM
0 Replies
Data::ObjectDriver::Profiler(3pm)			User Contributed Perl Documentation			 Data::ObjectDriver::Profiler(3pm)

NAME
Data::ObjectDriver::Profiler - Query profiling SYNOPSIS
my $profiler = Data::ObjectDriver->profiler; my $stats = $profiler->statistics; my $total = $stats->{'DBI:total_queries'}; my $log = $profiler->query_log; $profiler->reset; USAGE
$Data::ObjectDriver::PROFILE To turn on profiling, set $Data::ObjectDriver::PROFILE to a true value. Alternatively, you can set the DOD_PROFILE environment variable to a true value before starting your application. Data::ObjectDriver->profiler Profiling is global to Data::ObjectDriver, so the Profiler object is a global instance variable. To get it, call Data::ObjectDriver->profiler, which returns a Data::ObjectDriver::Profiler object. $profiler->statistics Returns a hash reference of statistics about the queries that have been executed. $profiler->query_log Returns a reference to an array of SQL queries as they were handed off to DBI. This means that placeholder variables are not substituted, so you'll end up with queries in the query log like "SELECT title, difficulty FROM recipe WHERE recipe_id = ?". $profiler->query_frequency Returns a reference to a hash containing, as keys, all of the SQL statements in the query log, where the value for each of the keys is a number representing the number of times the query was executed. $profiler->reset Resets the statistics and the query log. $profiler->total_queries Returns the total number of queries currently logged in the profiler. $profiler->report_queries_by_type Returns a string containing a pretty report of information about the current number of each type of query in the profiler (e.g. "SELECT", "INSERT"). $profiler->report_query_frequency Returns a string containing a pretty report of information about the current query frequency information in the profiler. perl v5.12.4 2011-08-29 Data::ObjectDriver::Profiler(3pm)
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy