added skinny markers + and x; closes #436

This commit is contained in:
Thomas Breloff 2016-08-09 17:09:53 -04:00
parent f8fddb49e2
commit 9db7de8373
9 changed files with 15 additions and 6 deletions

View File

@ -123,9 +123,9 @@ const _markerAliases = Dict{Symbol,Symbol}(
:dtri => :dtriangle,
:downtri => :dtriangle,
:downtriangle => :dtriangle,
:+ => :cross,
# :+ => :cross,
:plus => :cross,
:x => :xcross,
# :x => :xcross,
:X => :xcross,
:star => :star5,
:s => :star5,

View File

@ -80,6 +80,8 @@ const _gl_marker_map = KW(
:hexagon => '⬢',
:cross => '✚',
:xcross => '❌',
:+ => '✚',
:x => '❌',
:utriangle => '▲',
:dtriangle => '▼',
:pentagon => '⬟',

View File

@ -74,6 +74,8 @@ const gr_markertype = KW(
:octagon => -24,
:cross => 2,
:xcross => 5,
:+ => 2,
:x => 5,
:star4 => -25,
:star5 => -26,
:star6 => -27,

View File

@ -64,6 +64,8 @@ const _pgfplots_markers = KW(
:none => "none",
:cross => "+",
:xcross => "x",
:+ => "+",
:x => "x",
:utriangle => "triangle*",
:dtriangle => "triangle*",
:circle => "*",

View File

@ -307,6 +307,7 @@ plotly_colorscale(c, α) = plotly_colorscale(cgrad(alpha=α), α)
const _plotly_markers = KW(
:rect => "square",
:xcross => "x",
:x => "x",
:utriangle => "triangle-up",
:dtriangle => "triangle-down",
:star5 => "star-triangle-up",

View File

@ -174,8 +174,8 @@ function py_marker(marker::Symbol)
marker == :diamond && return "D"
marker == :utriangle && return "^"
marker == :dtriangle && return "v"
# marker == :cross && return "+"
# marker == :xcross && return "x"
marker == :+ && return "+"
marker == :x && return "x"
marker == :star5 && return "*"
marker == :pentagon && return "p"
marker == :hexagon && return "h"

View File

@ -119,6 +119,8 @@ const _shape_keys = Symbol[
:star8,
:vline,
:hline,
:+,
:x,
]
const _shapes = KW(

View File

@ -252,7 +252,7 @@ PlotExample("DataFrames",
iris = RDatasets.dataset("datasets", "iris")
scatter(iris, :SepalLength, :SepalWidth, group=:Species,
title = "My awesome plot", xlabel = "Length", ylabel = "Width",
marker = (0.5, [:+ :h :star7], 12), bg=RGB(.2,.2,.2))
marker = (0.5, [:cross :hex :star7], 12), bg=RGB(.2,.2,.2))
end)]
),

View File

@ -45,7 +45,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is
# firgure out version info
G = glob(joinpath(relpath(refdir), "*"))
# @show refdir fn G
slash = (@windows ? "\\" : "/")
slash = (@static is_windows() ? "\\" : "/")
versions = map(fn -> VersionNumber(split(fn, slash)[end]), G)
versions = reverse(sort(versions))
versions = filter(v -> v <= _current_plots_version, versions)