Class MRPlot::RMagickContext
In: mrplot/magick.rb
Parent: GraphicContext

The RMagick context, uses RMagick/ImageMagick to output plots as images

Methods

Included Modules

Magick

Attributes

image  [R] 

Public Class methods

Create new context (image) with the size in pixels

Public Instance methods

Draws an arrow head. Currently the RMagickContext only supports one type of arrow heads so the Style#arrow_head attribute will be ignored

Draw a marker. The following markers (Style#marker) are supported :dot, :small_cross, :cross, :square, :circle, :image. If you use :image you have to specify the image’s filename in Style#marker_image.

Overwrites the clip attr writer to update the context clipping

This is a optimized draw_line_segments method which uses the RMagick’s Draw#polyline method.

Overwrites the windowspace attr writer to update the context clipping

Writes the context to a image file. Uses RMagick’s Image#write method. The file format can be specified by using the formats extension (.jpg, .png and so on)

[Validate]