# Tag Info

2

Possible solution with tikz \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing, decorations.pathreplacing, positioning} \usepackage[numbered,framed]{matlab-prettifier} \begin{document} \begin{tikzpicture} [%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% node distance=.2cm, ...

0

I had managed to use MATLAB's spherical harmonics function and use matlab2tikz to convert it into a tikz image. Solution adapted from http://au.mathworks.com/help/matlab/examples/animating-a-surface.html?refresh=true MATLAB code: theta = 0:pi/40:pi; % polar angle phi = 0:pi/20:2*pi; % azimuth angle [phi,theta] = ...

1

After quite a lot of hours, in a random check of the resulting pdf file, i realized that the eps images appear as expected and very nice indeed. So, i don't want to jump into conclusions but the whole thing might have to do with TexMaker's pdf preview (of course related to a interpretation issue as mentioned above). If anyone faced the same problem, I would ...

5

No idea if this could be done "natively" with asymptote, pstricks or TikZ, or even by calculating all the data in an external program and then plotting it with pgfplots. I went for doing everything in python and simply including the resulting image. This adapts the python code written by Alex J. DeCaria, taken from the ipython notebook linked on this page. ...

2

For the y-axis, you can use ytickend to provide a list of the desired tick locations (it admits the ... shortcut). In your case, you can use ytickten={-4,-2,0} For the x-axis, you need to change the tick representation using xtick=data, xticklabel=\pgfmathparse{e^\tick}\pgfmathprintnumber{\pgfmathresult} A complete example: \documentclass{article} ...

Top 50 recent answers are included