help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Loading tick labels from a file


From: Byron Hawkins
Subject: RE: Loading tick labels from a file
Date: Mon, 24 Feb 2014 10:12:20 -0800

On Feb 24, 2014, at 5:16 AM, Byron Hawkins <address@hidden>
wrote:

> I'm trying to make a generic octave script for generating some basic
plots, and I need to load the tick labels from a file. This works for
numeric labels:
>  
> tick_labels = dlmread(args{4})
>  
> But when I have a text label like "1K", it shows up on the axis as "0". I
tried a variety of other loading functions, but the result was the same. Is
there a way to specify that the contents are text and should be treated as
if quoted? Thanks for your help.
>  
> Byron

Can you give us an example of the file you are reading?  Does it contain all
labels with double quotes on one line? Or one label on each line without any
quotes, or something else?

Ben

I've tried a few ways. When I put them on separate lines, the labels show up
on the wrong tick marks, so I mostly experimented with them all on one line.
For example:

1,10,100,1K

And:

 1,10,100,"1K"

And:

1,10,100,'1K'

What's the normal way to do this?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]