pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

Error using pgfplots with IEEEAccess template #338

Open pgf-tikz-bot opened 6 years ago

pgf-tikz-bot commented 6 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/support-requests/20/ Author: anuator Timestamp: 2018-05-04 15:02:22.036000

Related: https://sourceforge.net/p/pgfplots/support-requests/20/ Hi. I have also posted my question https://tex.stackexchange.com/questions/428058/while-using-ieee-access-template-and-using-pgfplots-to-draw-graphs-document-tit with a minimal example. It would be great to know if it can be worked out. Thanks

pgf-tikz-bot commented 6 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/support-requests/20/#26e6 Author: cfeuersaenger Timestamp: 2018-05-04 20:27:05.035000

Could you give me a hint on where to get the class file (or send me an email / attach it to this ticket)?

I assume that this issue is unrelated to pgfplots. It might be related to PGF, though, and pgfplots loads PGF.

pgf-tikz-bot commented 6 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/support-requests/20/#26e6/a399 Author: anuator Timestamp: 2018-05-04 21:42:31.380000

https://sourceforge.net/p/pgfplots/support-requests/_discuss/thread/d62ea1de/26e6/a399/attachment/alternate https://sourceforge.net/p/pgfplots/support-requests/_discuss/thread/d62ea1de/26e6/a399/attachment/ieeeaccess.cls Hi Christian, I have attached the class file here. Alternatively, you can get the template from the link below.

http://ieeeauthorcenter.ieee.org/create-your-ieee-article/use-authoring-tools-and-ieee-article-templates/ieee-article-templates/templates-ieee-access/

Thanks BR, Anwar

On Fri, May 4, 2018 at 10:27 PM, "Christian Feuersänger" < cfeuersaenger@users.sourceforge.net> wrote:

Could you give me a hint on where to get the class file (or send me an email / attach it to this ticket)?

I assume that this issue is unrelated to pgfplots. It might be related to PGF, though, and pgfplots loads PGF.

Status: open Group: v1.0 (example) Created: Fri May 04, 2018 03:02 PM UTC by Anwar Ul Haq Last Updated: Fri May 04, 2018 03:02 PM UTC Owner: nobody

Hi. I have also posted my question https://tex.stackexchange.com/ questions/428058/while-using-ieee-access-template-and- using-pgfplots-to-draw-graphs-document-tit with a minimal example. It would be great to know if it can be worked out. Thanks

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pgfplots/support-requests/20/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

-- Regards, Anwar Ul Haq

pgf-tikz-bot commented 6 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/support-requests/20/#f4b8 Author: cfeuersaenger Timestamp: 2018-05-18 13:44:26.381000

I cannot compile your example from tex.sx, neither with your attached class file (which appears to be entirely broken) nor with the zip downloaded from your link.

I stripped the example down to what compiles and then pgfplots and title appear to work:

\documentclass{IEEEtran} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{textcomp} \usepackage{pgfplots} \pgfplotsset{compat=1.9}

\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document}

%\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.}\doi{10.1109/ACCESS.2017.DOI}

\title{Preparation of Papers for IEEE ACCESS}% \author{\uppercase{First A. Author}\authorrefmark{1}, \IEEEmembership{Fellow, IEEE}, \uppercase{Second B. Author\authorrefmark{2}, and Third C. Author, Jr}.\authorrefmark{3}, \IEEEmembership{Member, IEEE}} %\tfootnote{This paragraph of the first footnote will contain support information}

%\corresp{Corresponding author: First A. Author (e-mail: author@ boulder.nist.gov).}

\begin{abstract} These instructions give you guidelines for preparing papers for IEEE Access.
\end{abstract}

%\titlepgskip=-15pt

\maketitle

\section{Introduction} \label{sec:introduction} %\PARstart{T}{his} document is a template for \LaTeX.

\begin{tikzpicture} \begin{loglogaxis}[xlabel=Cost, ylabel=Error] \addplot[color=red,mark=x] coordinates {
(5, 8.31160034e-02)
(17, 2.54685628e-02) (49, 7.40715288e-03) (129, 2.10192154e-03)
(321, 5.87352989e-04) (769, 1.62269942e-04)
(1793, 4.44248889e-05)
(4097, 1.20714122e-05)
(9217, 3.26101452e-06) };

        \addplot[color=blue,mark=*] coordinates {     
        (15,    8.31160034e-02)     
        (20,   2.54685628e-02)  
        (59,   7.40715288e-03)  
        (149,  2.10192154e-03)  
        (371,  5.87352989e-04)  
        (799,  1.62269942e-04)  
        (1893, 4.44248889e-05)  
        (4997, 1.20714122e-05)  
        (9917, 3.26101452e-06)
            };

    \legend{Case 1,Case 2} 
\end{loglogaxis} 

\end{tikzpicture}

%\EOD

\end{document}

Can you verify that you do not have any remaining compile errors? The problem appears to be unrelated to pgfplots / pgf.