Skip to content

twinx() not working with PGFPlots #2071

@dancsi

Description

@dancsi

Hello,
It seems to me that PGFPlots gives an incorrect output when trying to share the same x axis between two plots with twinx(). Here is the sample code

using Plots
pgfplots()
plot(1:10); plot!(twinx(), -(1:10))

Here is the output of PGFPlots:
pgfplots
Here is the generated .tex: pgfplot.txt
For reference, here is the correct output from GR:
gr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions