[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiline labels in graphics
From: |
Daniel J Sebald |
Subject: |
Re: Multiline labels in graphics |
Date: |
Sun, 23 Mar 2008 20:40:19 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Moritz Borgmann wrote:
Gnuplot has a demo "enhancedtext.dem" that uses the following syntax
and produces multiline text (which is left aligned by default):
set label 8 "Overprint\n(v should be centred over d)" tc lt 3
Is this what you are looking for?
yep, adding \n per se works, and it's essentially what I'm doing. The
problem is not inserting the \n, but what Octave does to it afterward...
(slapping braces around the whole thing, which will confuse gnuplot...)
I'm not following or finding what you found. I've modified my __axis_label__.m
file per the patch and everything works fine. For example, I try
plot([0:50]);
A = {"testing", "1^2_3"};
title(A);
xlabel(A);
ylabel(A);
and the result looks just the way I think it should look. I know that your new code is
being executed because I took away a semicolon so that I could see the resulting
"txt".
Doing a
set(1, "__plot_stream__", 1);
shows the gnuplot stream in which I see the following:
set title "address@hidden" font "Helvetica,10" enhanced;
This all looks quite good to me. Could you give a series of commands in which it fails? Try the
"set(1, "__plot_stream__", 1);" to pinpoint where the extraneous "}" is coming
from.
Well, I guess I should say that I've tried it with the x11 terminal. Perhaps
it is a gnuplot bug in another terminal driver.
Dan