Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matlab2tikz generates empty tikz-file when creating polarplot #1115

Open
vanKey2022 opened this issue Dec 5, 2022 · 0 comments
Open

matlab2tikz generates empty tikz-file when creating polarplot #1115

vanKey2022 opened this issue Dec 5, 2022 · 0 comments

Comments

@vanKey2022
Copy link

Hello all,

since several month I'm working with matlab2tikz and made good experiences. Right now, im trying to do a polarplot and convert it into a tikz-File to include it in Latex. The problem is, that matlab2tikz generates an empty tikz-File when creating a polarplot (see minimum example code). Does anyone have an idea how to solve the problem?

Kind regards
vanKey2022

Minimum example code, that does not work:
`
clear all

close all

theta = 0:0.01:2*pi;

rho = sin(2*theta).cos(2theta);

polarplot(theta,rho)

matlab2tikz('C:\Users\Name\Desktop\Polarplot.tikz', 'height', '5cm', 'width', '5cm');
`

The file Polarplot.tikz without content looks like that:

% This file was created by matlab2tikz.
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
\begin{tikzpicture}
\end{tikzpicture}%

The output from the matlab-console loosk like that:

*** (To disable info messages, pass ['showInfo', false] to matlab2tikz.)
*** (For all other options, type 'help matlab2tikz'.)



*** This is matlab2tikz v1.1.0.


*** The latest developments can be retrieved from our development branch.
*** You can find more documentation on our GitHub page and wiki.
*** If you encounter bugs or want a new feature, go to our issue tracker.
*** Please visit FileExchange to rate matlab2tikz or download the stable release.


*** You will need pgfplots version 1.3 or newer to compile the TikZ output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant