473,837 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gnuplot setting titles/labels from input

10 New Member
As described in the title, my data file looks like this (but is subject to change). The spaces are set to tabs in the original text file

0.79 14035.9514242 2105.39271363
1.235 62934.4320192 9440.16480289
1.24 60046.585558 9006.98783371
1.662 108817.803817 16322.6705726
2.159 93968.3013455 14095.2452018
2.16 103034.193554 15455.1290331
3.6 48481.88 154.7502
4.5 26709.49 107.7075
5.8 19716.24 133.0724
8.0 11311.64 95.06903
24.0 1656.058 72.69656

USB270.04141-29.71615

It plots the points well, I was just wondering if I could directly tell gnuplot to set the text that I have in the 13th line as the title to the plot.

I also have a similar inquiry with setting the legend to text I have in the following file:

0.85 55900.8153737 55971.5738285 34391.2535468
1.24 118645.454852 117689.715812 96136.8849147
1.66 134269.311 133607.709601 119998.137376
2.16 116632.565409 116444.626045 110244.38637
3.6 48481.88 48481.88 48481.88
4.5 29369.0154844 29384.1184986 29716.8780647
5.8 19362.079399 19404.2451363 19794.3770414
8.0 12941.9205963 13084.9356887 13518.5638942
24.0 2028.22574298 2070.68005847 2195.43772642

Model:2987---Temperature:430 0
Model:3037---Temperature:440 0
Model:2988---Temperature:430 0

This plots well, but I would like to set the legend so that it reads directly from the text file as opposed to me having to input the title and label manually.

Like I said up top, the placement of the labels/title are subject to change if it will make the endgoal more easily obtainable.

Thanks
Apr 2 '12 #1
0 1723

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4789
by: Rama Calaga | last post by:
Hi, I use both python and gnuplot a lot, but I am unable to find a way to embed gnuplot "window/canvas" into tkinter. BLT option in PMW is not so powerful and not so great, any suggestions ?? thanks ram
9
4717
by: syd | last post by:
I don't even know where to begin. This is just bizarre. I just picked up the Gnuplot.py module (a light interface to gnuplot commands) and was messing around with it today. I've got a tiny script, but it only works from the command line about half the time! In the python interpreter, 100%. Ipython, 100%. I'm not kidding. #!/bin/env python import Gnuplot
6
10706
by: Joseph Suprenant | last post by:
Hello all, I have a C++ program, it does some calculations on things and then prints out a file in the format in which GNUPLOT can use. So my question is how would i call GNUPLOT from my C++ program. I know in some operating systems you can do system("gnuplot"); But not with red hat 7.3. So could some kind soul help me out? After it starts up GNUPLOT my program will terminate. Thanks
1
1392
by: Evan | last post by:
When setting up an input box in VB .Net to get a SQL user name for a SQL connection, if the enter key is pressed on the input box (regardless whether text has been entered) the program crashes on opening the SQL connection. The program works fine if the OK button is pressed with the mouse. (A blank response causes NT authentication, instead of SQL authentication). I have written the code with both a SQLClient and using ADO, and it fails...
2
7259
by: Jim Witte | last post by:
Hi, How do I set a file input element? If it's a text input, I can set the value property. But this doesn't work with file inputs. And no, I can't change it - I'm writing a script to automate a process on an existing system. Jim Witte jswitte@bloomington.in.us
1
3371
by: Nicola Kaiser | last post by:
Hi, I´m using Gnuplot via gnuplot.py and I´m looking for a way to get the plotting output (terminal set to png in my case) piped in a string instead of to stdout or a file. Is there any method in gnuplot.py that does this for me? If not, I tried something like:
3
2479
by: Dalan | last post by:
I have been using a module for printing labels in Access 97, and although it works fine, I would like to resolve a minor problem. The module allows for setting the number of labels to print and/or to skip; however, the Cancel command button does not function at all, nor does clicking the X-close. Clicking either one is the same as clicking the OK button. I have tried virtually everything, but to no avail. Since the module creates and...
0
476
by: Sally Whitfield | last post by:
8Zcc ----uMyItidGBFcIxNvn7Ubo Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px; TEXT-TRANSFORM: uppercase; COLOR: #ffffff; FONT-FAMILY: verdana,ar= ial,helvetica,sans-serif; TEXT-DECORATION: none } A.eyebrow:link { TEXT-DE= CORATION: none }</style><title>W</title><meta http-equiv=3DContent-Type co=
13
3037
by: amykimber | last post by:
Hi all, I know I'm doign something really daft, but I can't get this to work... I have a form with a bunch of inputs called ship_owner - why the ? Because I'm submitting this page though php and the put the data into an array in the post.... anywhat. I have a link <a href="javascript:change_class()" >Block mode</a> to
1
1505
by: =?Utf-8?B?RXBvaCBSaW8=?= | last post by:
Hi, I am trying to create a way to edit data in a database. Response.Write ("<input name=""issue"" value=" & recSet.Fields("Name") & """ If the name contains a space (i.e. first and last name) It only displays the first name (because of the space) I have tried several things to get this to work
0
9827
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10560
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10609
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6987
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4468
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4034
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3120
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.