help-octave
[Top][All Lists]
Advanced

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

Print tex creating transparent elements


From: the_clapper
Subject: Print tex creating transparent elements
Date: Mon, 26 May 2014 10:05:55 -0700 (PDT)

Dear all,

when exporting figures from octave 3.8.1 somehow the elements contained in
figures get arranged "weird".  In the example below the legend elements get
put to the far background, so the line and grid elements will be on top of
it. Also, the elements appear to be transparent, take a close look at the
legend box.
I do not know it this is an octave related issue or it is some other
component involved causing this.

Please have a look at the octave code and and .tex-file.

figure('Name','Plot Export Demo');
hold on;
grid on;
plot([0,10],[0,10],'LineWidth',2,'Color','blue');
plot([0,10],[10,0],'LineWidth',2,'Color','red');
set(gca,'xtick',[0:10]);
set(gca,'ytick',[0:10]);
legend('blue line','red line');
print('-dtex','plot_export_demo');

A minimum working example .tex file:

\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{color}
\usepackage[left=3.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\begin{document}
\resizebox{1.0\textwidth}{!}{\input{plot_export_demo.tex}}
\end{document}

A screenshot of the resulting image in the .pdf-file is attached below. You
can see the blue line on top of the legend box in the .eps file produced by
octave already. So I guess everything else is a follow up?

Any ideas what might be causing this?
<http://octave.1599824.n4.nabble.com/file/n4664335/screenshot.png> 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Print-tex-creating-transparent-elements-tp4664335.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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