Open Datseris opened 4 years ago
This actually should work if you use a row vector for ma
consider the following:
using Plots
pgfplotsx()
x = Shape([1, 2, 3], [1, 2, 5])
ma = [x x x]
scatter(rand(3), rand(3), marker = ma, markersize = 10)
Its just that these markers are not centered. Cf. https://docs.juliaplots.org/latest/generated/pgfplotsx/#pgfplotsx-ref21-1. Better would be:
x = Shape([(-0.5, 0.), (0.5, 1.), (0.5,-1.), (-0.5,0.)])
scatter(rand(3), rand(3), markershape = x, markersize = 10)
Though for some reason passing a vector to markershape
causes some displacement.
it would be useful for me to be able to give this "Shape" as a marker to a scatter plot. Specificlly, pass a vector of Shape as markers to scatter. That would be extremely useful.
(this doesn't work)
Or, at least, allow me to use PyPlot's functionality that allows rotating markers as shapes:
I am confused why the above doesn't work, while it would work if I did it via PyPlot.