Skip to content

dpi on backends #733

@mkborregaard

Description

@mkborregaard
  1. The dpi of the pyplot backend has changed with the shift to matplotlib 2.0. Plots should adjust accordingly.
  2. gr and plotlyjs both ignore the dpi argument
  3. The pyplot backend seems to have the dpi argument backwards:
using Plots; pyplot()
scatter(1:10,1:10) # dpi = 100 as default

skaermbillede 2017-03-15 kl 10 51 59

scatter(1:10, 1:10, dpi = 150) # This should result in smaller elements

skaermbillede 2017-03-15 kl 10 52 17

An earlier merged PR claimed to fix this (https://github.com/JuliaPlots/Plots.jl/pull/517/files) but it hasn't, it seems. It did do something, though, reverting that PR gives

scatter(1:10, 1:10, dpi = 350)

skaermbillede 2017-03-15 kl 10 55 18

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