PGFPlotsX.jl logo
PGFPlotsX.jl
  • Home
  • Manual
    • Overview
    • Options
    • Data
    • Axis elements
    • Axis & friends
    • TikzPicture
    • Showing / Exporting figures
    • Internals
  • Examples
    • Coordinates
    • Tables
    • Axis-like objects
    • pgfplots gallery
    • Julia types
    • Convenience constructs
      • Horizontal and vertical lines
    • Using LaTeX code
Version
  • Examples
  • Convenience constructs
  • Convenience constructs
Edit on GitHub

Convenience constructs

Horizontal and vertical lines

x = range(3.01; stop = 6, length = 100)
y = @. 1/(x-3) + 3
@pgf Axis(
    {
        ymin = 2.5,
        ymax = 6,
        xmin = 2.5
    },
    Plot(
        {
            no_marks
        },
        Table(x, y)
    ),
    HLine({ dashed, blue }, 3),
    VLine({ dotted, red }, 3)
)

[.pdf], [generated .tex]

« Julia typesUsing LaTeX code »

Settings


This document was generated with Documenter.jl on Thursday 2 January 2020. Using Julia version 1.3.1.