{"id":13676007,"url":"https://github.com/matlab2tikz/matlab2tikz","last_synced_at":"2025-05-15T17:04:47.002Z","repository":{"id":37549256,"uuid":"579842","full_name":"matlab2tikz/matlab2tikz","owner":"matlab2tikz","description":"This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.","archived":false,"fork":false,"pushed_at":"2023-10-23T16:48:16.000Z","size":7752,"stargazers_count":1615,"open_issues_count":259,"forks_count":320,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-05-08T03:03:41.414Z","etag":null,"topics":["latex","matlab","matlab2tikz","octave","pgfplots","tikz"],"latest_commit_sha":null,"homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab2tikz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md"}},"created_at":"2010-03-25T22:52:27.000Z","updated_at":"2025-05-08T00:02:13.000Z","dependencies_parsed_at":"2024-01-03T06:43:17.410Z","dependency_job_id":"2265442c-2426-451c-860a-fda41603f8c3","html_url":"https://github.com/matlab2tikz/matlab2tikz","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab2tikz%2Fmatlab2tikz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab2tikz%2Fmatlab2tikz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab2tikz%2Fmatlab2tikz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab2tikz%2Fmatlab2tikz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab2tikz","download_url":"https://codeload.github.com/matlab2tikz/matlab2tikz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384987,"owners_count":22062422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latex","matlab","matlab2tikz","octave","pgfplots","tikz"],"created_at":"2024-08-02T12:01:07.920Z","updated_at":"2025-05-15T17:04:46.959Z","avatar_url":"https://github.com/matlab2tikz.png","language":"MATLAB","funding_links":[],"categories":["Tools","Packages","MATLAB","External Libraries \u0026 Utilities","Making Figures","Uncategorized"],"sub_categories":["Graphics","Uncategorized"],"readme":"**The updater in matlab2tikz 0.6.0 (and older) no longer works.**\n**Please [update manually](http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz-matlab2tikz?download=true) if you are not using matlab2tikz 1.0.0 or newer!**\n\n[![Build Status](https://travis-ci.org/matlab2tikz/matlab2tikz.svg?branch=master)](https://travis-ci.org/matlab2tikz/matlab2tikz) [![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.18605.svg)](http://dx.doi.org/10.5281/zenodo.18605)\n![matlab2tikz](https://raw.githubusercontent.com/wiki/matlab2tikz/matlab2tikz/matlab2tikz.png)\n\n`matlab2tikz` is a MATLAB(R) script to convert native MATLAB(R) figures to TikZ/Pgfplots figures that integrate seamlessly in LaTeX documents.\n\nTo download the official releases and rate `matlab2tikz`, please visit its page on [FileExchange](http://www.mathworks.com/matlabcentral/fileexchange/22022).\n\n`matlab2tikz` converts most MATLAB(R) figures, including 2D and 3D plots. \nFor plots constructed with third-party packages, however, your mileage may vary.\n\nInstallation\n============\n\n1. Extract the ZIP file (or clone the git repository) somewhere you can easily reach it. \n2. Add the `src/` folder to your path in MATLAB/Octave: e.g. \n    - using the \"Set Path\" dialog in MATLAB, or \n    - by running the `addpath` function from your command window or `startup` script.\n\nMake sure that your LaTeX installation is up-to-date and includes:\n\n* [TikZ/PGF](http://www.ctan.org/pkg/pgf) version 3.0 or higher\n* [Pgfplots](http://www.ctan.org/pkg/pgfplots) version 1.13 or higher\n* [Amsmath](https://www.ctan.org/pkg/amsmath) version 2.14 or higher\n* [Standalone](http://www.ctan.org/pkg/standalone) (optional)\n\nIt is recommended to use the latest stable version of these packages.\nOlder versions may work depending on the actual MATLAB(R) figure you are converting.\n\nUsage\n=====\n\nTypical usage of `matlab2tikz` consists of converting your MATLAB plot to a TikZ/LaTeX file and then running a LaTeX compiler to produce your document.\n\nMATLAB\n------\n  1. Generate your plot in MATLAB(R).\n\n  2. Run `matlab2tikz`, e.g. using\n\n```matlab\nmatlab2tikz('myfile.tex');\n```\n\nLaTeX\n-----\nAdd the contents of `myfile.tex` into your LaTeX source code, for example using `\\input{myfile.tex}`. \nMake sure that the required packages (such as `pgfplots`) are loaded in the preamble of your document as in the example:\n\n```latex\n\\documentclass{article}\n\n  \\usepackage{pgfplots}\n  \\pgfplotsset{compat=newest}\n  %% the following commands are needed for some matlab2tikz features\n  \\usetikzlibrary{plotmarks}\n  \\usetikzlibrary{arrows.meta}\n  \\usepgfplotslibrary{patchplots}\n  \\usepackage{grffile}\n  \\usepackage{amsmath}\n\n  %% you may also want the following commands\n  %\\pgfplotsset{plot coordinates/math parser=false}\n  %\\newlength\\figureheight\n  %\\newlength\\figurewidth\n\n\\begin{document}\n  \\input{myfile.tex}\n\\end{document}\n```\n\nRemarks\n-------\nMost functions accept numerous options; you can check them out by inspecting their help:\n\n```matlab\nhelp matlab2tikz\n```\n\nSometimes, MATLAB(R) plots contain some features that impede conversion to LaTeX; e.g. points that are far outside of the actual bounding box.\nYou can invoke the `cleanfigure` function to remove such unwanted entities before calling `matlab2tikz`:\n\n```matlab\ncleanfigure;\nmatlab2tikz('myfile.tex');\n```\n\nMore information\n================\n\n* For more information about `matlab2tikz`, have a look at our [GitHub repository](https://github.com/matlab2tikz/matlab2tikz). If you are a good MATLAB(R) programmer or LaTeX writer, you are always welcome to help improving `matlab2tikz`!\n* Some common problems and pit-falls are documented in our [wiki](https://github.com/matlab2tikz/matlab2tikz/wiki/Common-problems).\n* If you experience (other) bugs or would like to request a feature, please visit our [issue tracker](https://github.com/matlab2tikz/matlab2tikz/issues). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab2tikz%2Fmatlab2tikz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab2tikz%2Fmatlab2tikz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab2tikz%2Fmatlab2tikz/lists"}