I have used test script listed at the end of this issue to test markers in 2.1.0 and see how they differ from 1.5.1. I have found several problems and differences, but @chaosphere2112 can probably use this script in the gallery once the problems are solved
/home/share/unix_files/cdat/versions/cdat_install_uv-2.1.0_x86_64_gcc4_13/lib/python2.7/site-packages/vcs/vcs2vtk.py:1113: UserWarning: unknown marker type: star, using dot
warnings.warn("unknown marker type: %s, using dot" % t)
#!/usr/bin/env python
# A simple vcs markers test/demo
#
# J-Y Peterschmitt - LSCE - 02/2015
import numpy as np, vcs
x = vcs.init()
# Create a first group of markers: a vertical line of 3 green
# triangles, a diagonal of orange diamonds and a diagonal of black
# disks
#
# Everything will be plotted in the 0.05 to 0.95 part of the canvas
# horizontally, and from 0.1 to 0.9 vertically (aka, the "viewport")
#
# The coordinates of the markers inside the viewport will be from 0 to
#100 (aka the "world coordinates")
marker_test = x.createmarker('marker_test')
marker_test.worldcoordinate = [0, 100, 0, 100]
marker_test.viewport = [0.05, 0.95, 0.1, 0.9]
marker_test.x = [[90, 90, 90],
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]]
marker_test.y = [[25, 50, 75],
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
[100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0]]
marker_test.type = ['triangle_down_fill',
'diamond_fill',
'dot']
marker_test.size = [20.,
20.,
15.]
marker_test.color = [243, # Green
248, # Orange
241] # Black
# Create a second group of markers, all red and of the same size,
# using the same viewport and world coordinates as marker_test
some_markers = ['dot', 'plus', 'star', 'circle', 'cross',
'diamond', 'triangle_up', 'triangle_down',
'triangle_down', 'triangle_left', 'triangle_right',
'square', 'diamond_fill', 'triangle_up_fill',
'triangle_down_fill', 'triangle_left_fill',
'triangle_right_fill', 'square_fill']
x_mrk = 5
x_mrk_step = 40
y_mrk0 = 95
y_mrk = y_mrk0
y_mrk_step = 10
x_list = []
y_list = []
x_list_text = []
y_list_text = []
for mrk in some_markers:
x_list.append([x_mrk])
x_list_text.append(x_mrk + 5)
y_list.append([y_mrk])
y_list_text.append(y_mrk)
# Determine the location of the next marker
y_mrk -= y_mrk_step # y_list = y_list - y_mrk_step
if y_mrk < 15:
# Start a new column!
x_mrk += x_mrk_step
y_mrk = y_mrk0
marker_demo = x.createmarker('marker_demo')
marker_demo.worldcoordinate = marker_test.worldcoordinate
marker_demo.viewport = marker_test.viewport
marker_demo.x = x_list
marker_demo.y = y_list
marker_demo.type = some_markers
nb_markers = len(some_markers)
marker_demo.size = nb_markers * [15] # All the markers are of size 15
marker_demo.color = nb_markers * [242] # All the markers are red
# Plot the marker names next to the markers, using the same viewport
# and world coordinates as marker_demo (and marker_test)
marker_names = x.createtext('marker_names')
marker_names.worldcoordinate = marker_test.worldcoordinate
marker_names.viewport = marker_test.viewport
marker_names.x = x_list_text
marker_names.y = y_list_text
marker_names.string = some_markers
marker_names.color = 241
# Plot everything
x.plot(marker_test)
x.plot(marker_demo)
x.plot(marker_names)
# Save the plot to a png file
x.png('test_simple_marker', draw_white_background=True)
x.pdf('test_simple_marker')
# The end
I have used test script listed at the end of this issue to test markers in 2.1.0 and see how they differ from 1.5.1. I have found several problems and differences, but @chaosphere2112 can probably use this script in the gallery once the problems are solved
I originally wanted to experiment with projections to see if #672 had been solved but I have found other problems and probably won't have time to experiment with non default projection. My ultimate goal and need is of course to be able to overlay data points markers over a vcs map, whatever the projection is!
png created with 2.1.0

png created with 1.5.1

The problems and differences:
The test script: