@@ -14,6 +14,7 @@ function get_marker_name(d::Dict, arg1, symbs::Vector{Symbol}, is3D::Bool, del::
1414 elseif (o == " j" || startswith (o, " rot" )) opt = " j" ; N = 3
1515 elseif (o == " M" || startswith (o, " Mat" )) opt = " M" ; N = 3
1616 elseif (o == " m" || startswith (o, " mat" )) opt = " m" ; N = 3
17+ elseif (o == " P" || startswith (o, " sph" )) opt = " P" ; N = 1
1718 elseif (o == " R" || startswith (o, " Rec" )) opt = " R" ; N = 3
1819 elseif (o == " r" || startswith (o, " rec" )) opt = " r" ; N = 2
1920 elseif (o == " V" || startswith (o, " Vec" )) opt = " V" ; N = 2
@@ -23,6 +24,7 @@ function get_marker_name(d::Dict, arg1, symbs::Vector{Symbol}, is3D::Bool, del::
2324 elseif (o == " W" || o == " Pie" || o == " Web" || o == " Wedge" ) opt = " W" ; N = 2
2425 end
2526 if (N > 0 ) marca, arg1, msg = helper_markers (opt, t[2 ], arg1, N, cst) end
27+ (marca == " P" ) && (marca = " P$(t[2 ]) " )
2628 (msg != " " ) && error (msg)
2729 if (length (t) == 3 && isa (t[3 ], NamedTuple))
2830 if (marca == " w" || marca == " W" ) # Ex (spiderweb): marker=(:pie, [...], (inner=1,))
@@ -41,6 +43,7 @@ function get_marker_name(d::Dict, arg1, symbs::Vector{Symbol}, is3D::Bool, del::
4143 elseif (key == :K || key == :Custom ) opt = " K"
4244 elseif (key == :k || key == :custom ) opt = " k"
4345 elseif (key == :M || key == :Matang ) opt = " M"
46+ elseif (key == :P || key == :sphere ) opt = " P"
4447 elseif (key == :m || key == :matang ) opt = " m"
4548 elseif (key == :geovec ) opt = " ="
4649 end
@@ -54,6 +57,10 @@ function get_marker_name(d::Dict, arg1, symbs::Vector{Symbol}, is3D::Bool, del::
5457 marca = opt * add_opt (t, (size= (" " , arg2str, 1 ), arrow= (" " , vector_attrib)))
5558 elseif (opt == " k" || opt == " K" )
5659 marca = opt * add_opt (t, (custom= " " , size= " /" ))
60+ elseif (opt == " P" )
61+ marca = opt * add_opt (t, (sphere= (" " , arg2str, 1 ), size= (" " , arg2str, 2 ), azim= " +a" , elev= " +e" , flat= " _+f" , nofill= " _+n" , no_fill= " _+n" ))
62+ (marca == " P" ) && (marca = " P7p" ) # Default size 7p if none given
63+ (marca[2 ] == ' +' ) && (marca = " P7p" * marca[2 : end ]) # iden
5764 end
5865 else
5966 t1:: String = string (t)
@@ -63,7 +70,9 @@ function get_marker_name(d::Dict, arg1, symbs::Vector{Symbol}, is3D::Bool, del::
6370 elseif (t1 == " a" || t1 == " *" || t1 == " star" ) marca = " a"
6471 elseif (t1 == " k" || t1 == " custom" ) marca = " k"
6572 elseif (t1 == " x" || t1 == " cross" ) marca = " x"
66- elseif (is3D && (t1 == " u" || t1 == " cube" )) marca = " u" # Must come before next line
73+ elseif (is3D)
74+ (t1 == " P" || t1 == " sphere" ) && (marca = " P" )
75+ (t1 == " u" || t1 == " cube" ) && (marca = " u" ) # Must come before next line
6776 elseif (t1[1 ] == ' c' ) marca = " c"
6877 elseif (t1[1 ] == ' d' ) marca = " d" # diamond
6978 elseif (t1 == " g" || t1 == " octagon" ) marca = " g"
0 commit comments