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

Charter plot issues #8

Open
johnblommers opened this issue Mar 14, 2024 · 0 comments
Open

Charter plot issues #8

johnblommers opened this issue Mar 14, 2024 · 0 comments

Comments

@johnblommers
Copy link

For the following Markdown file we find that the HTML and PDF exports contain the Charter plot. The ODT and DOCX export files plots are not embedded. And for the LaTeX export the TEX file won't compile with Gummi citing an error at the line \end{axis}

The Markdown file:

```charter
title: reconstruction error vs compression
x-axis:
	    label: compression
	    mode: linear
y-axis:
    label: mse
plot:
    x: 1 10  50 80
    y: 0 01 03  05
    label: f_avg
    marker: s
    ls: --
```

The TEX export is

\documentclass[a4paper, 10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{float}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{epsfig}
\usepackage{tikz}
\usepackage{pgfplots}

\pgfplotsset{compat=1.15}

\providecommand{\keywords}[1]{{\bf{\em Index terms---}} #1}
\newfloat{program}{thp}{lop}
\floatname{program}{Listing}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
	grid=both,
	title={reconstruction error vs compression},
	xlabel={compression},
	ylabel={mse},
]
\addplot[
	line width = 1.000000pt,
	dashed,
	mark=square*,
] table {
	1.000000 0.000000
	10.000000 1.000000
	50.000000 3.000000
	80.000000 5.000000
};
\addlegendentry{f_avg}
\end{axis}
\end{tikzpicture}

\end{document}
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