[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
print() options not working
From: |
Daniel J Sebald |
Subject: |
print() options not working |
Date: |
Sat, 03 Jan 2009 00:21:32 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
I've noticed that the options for print() are not working correctly. Attached
is a short patch with a fix. Here are a couple lines to illustrate the problem:
function [ enhanced ] = gnuplot_set_term (plot_stream, h, term, file)
...
if (nargin > 4 && ischar (opts_str))
## Options must go last
term_str = sprintf ("%s %s", term_str, opts_str);
I believe it should be > 2, not > 4. term_str is derived from term.
Here is some code to try as before/after:
x = [0:0.01:1]';
Y = [x sin(x) cos(x)];
plot(x,Y)
legend('x', 'sin(x)', 'cos(x)')
print('-deps', '-solid', 'test.eps')
Dan
- print() options not working,
Daniel J Sebald <=
- Message not available
- Message not available