Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If I use the function hist3() it perfectly works with matlab2tikz. But if I use the function bar3 I find this in my matrix.tikz:

% This file was created by matlab2tikz v0.2.3.
% Copyright (c) 2008--2012, Nico Schlömer <nico.schloemer@gmail.com>
% All rights reserved.
% 
% The latest updates can be retrieved from
%   http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
% where you can also make suggestions and rate matlab2tikz.
% 
% 
% 
\begin{tikzpicture}
\pgfplotset{compat=1.6}
\begin{axis}[%
view={-37.5}{30},
width=4.52083333333333in,
height=3.565625in,
scale only axis,
xmin=0.6, xmax=9.4,
xtick={1,2,3,4,5,6,7,8,9},
xmajorgrids,
y dir=reverse,
ymin=0, ymax=10,
ytick={1,2,3,4,5,6,7,8,9},
ymajorgrids,
zmin=0, zmax=1,
zmajorgrids,
axis lines*=left,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump,
unbounded coords=jump]

\addplot3[%
surf,
colormap/jet,
shader=faceted,
draw=black]
coordinates{ 
(NaN,(NaN,(NaN,(0.6,0.6,0)(0.6,1.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,1.6,0)(0.6,2.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,2.6,0)(0.6,3.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,3.6,0)(0.6,4.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(0.6,4.6,0)(0.6,5.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(N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(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,2.6,0)(9.4,3.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,3.6,0)(9.4,4.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,4.6,0)(9.4,5.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,5.6,0)(9.4,6.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,6.6,0)(9.4,7.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,7.6,0)(9.4,8.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(9.4,8.6,0)(9.4,9.4,0)(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,(NaN,

};
\end{axis}
\end{tikzpicture}%

And I can' t compile it with LaTeX. There is no error, all it says is Package pgfplots Warning: running in backwards compatibility mode (unsuitable tick labels; missing features).

All I initially wanted to do, is to represent a 9x9 Matrix with the help of a histogramm, to see which entrys are high...

I also found this: 3-dimensional histogram in pgfplots where anton explained how to do a Diagramm by yourself, but I don't understand why he uses triple like (NaN, NaN, 0 ) and there is also no nice colering solution...

EDIT: This is how my matlab code looks now (I think C has changed slightly)

function work_for_me_mr_pc()

C=[ 0.8445  0.0398  0.0069  0.0341  0.0199  0.0143  0.0109  0.0196  0.0099 
  0.0119  0.8153  0.0041  0.0057  0.0544  0.0086  0.0089  0.0847  0.0065 
  0.0852  0.1921  0.1077  0.0875  0.1365  0.2143  0.0102  0.0993  0.0671 
  0.0176  0.0135  0.004   0.7776  0.0693  0.0678  0.0203  0.0163  0.0136 
  0.0047  0.0129  0.0012  0.0055  0.9565  0.0045  0.0012  0.0135  0.     
  0.007   0.0118  0.008   0.0842  0.0572  0.8044  0.0038  0.0132  0.0102 
  0.0876  0.0878  0.0151  0.2129  0.1377  0.0905  0.095   0.1883  0.085  
  0.0109  0.0963  0.0046  0.0099  0.0867  0.0162  0.0092  0.7528  0.0134 
  0.0098  0.0164  0.0059  0.017   0.028   0.0319  0.0078  0.0304  0.8528];

bar3(C)
matlab2tikz( 'matrix.tikz' );
share|improve this question
    
I don't think bar3 is supported by matlab2tikz. –  Harish Kumar Nov 11 '12 at 13:35
    
thats correct. What can I do when I need a plot of a 9x9 Matrix? –  Adam Nov 11 '12 at 15:48
    
You can try qtiplot or scidavis and export it into tex. –  Harish Kumar Nov 11 '12 at 15:52
    
Or you may try matfig2pgf. –  Harish Kumar Nov 11 '12 at 17:06
    
Can you provide a sample matrix with its matlab code to generate the bar3 graph? –  Harish Kumar Nov 11 '12 at 17:31
show 2 more comments

1 Answer

See update -2 about plot2svg at the bottom. This is the most suitable method for diagrams as complex as this one.

This is not about a 9x9 matrix, but somewhat bigger than that. OK. After little try, I have this.

enter image description here

How did I generate it?

The actual figure is generated in matlab and the data points came as a result of some long computation. Then I generated the pgf code using matfig2pgf. It converts the figure into low level pgf commands. Unlike matlab2tikz it also inserts a menu item in to the matlab figure window, making the life easier. The generated code is somewhat long, somewhat 18400 lines, (hence, not posting here.) This method involved lot of manual tweekings and quite cumbersome. Also it won't work consistently.

enter image description here

Update:

Here is another alternative using inkscape and inkscape2tikz. First generate the figure in matlab, export it into pdf file. Now import this file into inkscape. In the pdf import settings window, uncheck Embed images:

enter image description here

Now export this into tikz using inkscape2tikz. It will generate the tex code (which again, is long, yuck!).

enter image description here

Here I have tweaked only the line width to be 1pt in the .tex code (which was something like 4pt and 2.667pt earlier).

Update-2

Now using plot2svg

I used bar3(C,0.25,'detached'); in your matlab code to make things less cluttered.

Put plot2svg.m somewhere (mine is - C:\Users\myname\Documents\MATLAB). When the figure window is active in matlab, type plot2svg in command window. A UI will open asking for the save details. Save the figure as .svg. Now open it in inkscape, save it as .tex (tikz) file.

enter image description here

enter image description here

You can also include the svg directly using svg package.

\documentclass{standalone}
\usepackage[clean,pdf]{svg}
\begin{document}
  \includesvg[width=13cm]{work2}
\end{document}

Refer this answer and this answer by speravir for details.

enter image description here

share|improve this answer
    
nice picture. Too bad that the code is so long. –  Adam Nov 11 '12 at 19:43
    
@Adam: I have updated with another alternative using inkscape. If you want the code, pl. drop me a mail to hkh47atrediffmail.com and also drop me a message here about the mail. –  Harish Kumar Nov 11 '12 at 23:18
    
@Adam: Another edit –  Harish Kumar Nov 12 '12 at 0:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.