Skip to content

Character encoding in facetted plots #5749

Description

@jydarack

Details

When creating facetted plots, Plots seems to revert to defaults regarding character encoding and/or fontfamily above a certain amount of data.

Minimum reproductible example

ENV["GKS_ENCODING"] = "utf-8"
using Plots
gr(fontfamily="Hiragino Sans")
x = 1:0.1:250
y = sin.(x)
p = plot(x, y)
title!("テスト")
plot(p, p) ## Works fine
plot(p, p, p, p) ## Fails to display the title, uses a monospaced font (Courrier ?) and 
## throws "GKS: glyph missing from current font" and "GKS: invalid bitmap size" warnings

Above example works fine if the upper limit of x is set instead to 100

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) X
unicodeplots X
pythonplot X
pgfplotsx X
plotlyjs X
plotly X
gaston X

Versions

Plots.jl version: 1.41.6
Backend version (]st -m <backend(s)>):
Output of versioninfo():

Julia Version 1.12.6
Commit 15346901f00 (2026-04-09 19:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: macOS (arm64-apple-darwin24.0.0)
  CPU: 8 × Apple M3
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, apple-m3)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 4 virtual cores)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions