Added a basic scatterplot for Magick backend by alishdipani · Pull Request #45 · SciRuby/rubyplot (original) (raw)
I Passed the rspec test for scatterplot for Magick backend and set up basic functions for Magick backend.
I modified the Magick backend so that it can:
- Draw x and y axis
- Draw markers
- Draw text with rotation and size
- Plot a rudimentary scatter plot
Since, GR and Magick backend uses different units for sizes, for now I have multiplied the transform function with a hard-coded value 10. I will find a suitable factor to multiply for a normalized scale for all backends. Also, no ticks are implemented in the x and y axis, I will add ticks in future.
Currently the implemented scatterplot looks like this:
Please review my changes.