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

[BUG] LaTeX error in PGFPlotsX backend. #4182

Closed
zhiyuanzhai opened this issue Apr 16, 2022 · 1 comment · Fixed by #4262
Closed

[BUG] LaTeX error in PGFPlotsX backend. #4182

zhiyuanzhai opened this issue Apr 16, 2022 · 1 comment · Fixed by #4262

Comments

@zhiyuanzhai
Copy link
Contributor

zhiyuanzhai commented Apr 16, 2022

Details

For some data sets, there is a possibility when PGF cannot recognise some of the "operators". For example:

pgfplotsx()

x = y = LinRange(1e-8,1e-5,100);
A = x .+ y';
contour(A)

gives the following error:

! Package PGF Math Error: Unknown operator `×' or `×1' (in '5.00×10⁻⁶').


See the PGF Math package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1912 \end{axis}

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

(Haven't test this in other backends, but I'm definitely sure that this is PGF-only since it's a LaTeX error.)

Versions

Plots.jl version: v1.27.4
Backend version (]st -m <backend(s)>): PGFPlotsX v1.4.1
Output of versioninfo():

Julia Version 1.6.6
Commit b8708f954a (2022-03-28 07:17 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 
  JULIA_EDITOR = code
  JULIA_PKG_SERVER = https://pkg.julialang.org
@zhiyuanzhai
Copy link
Contributor Author

Update: colorbar_ticks=:none temporarily solves the problem.

@t-bltg t-bltg mentioned this issue Jul 8, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants