module Cryplot::TitleMixin(T)

Overview

mixin used to attach title options to a type

Included Modules

Direct including types

Defined in:

plot/elems/title.cr

Instance Method Summary

Instance methods inherited from module Cryplot::BaseMixin(T)

derived : T derived, repr : String repr, to_s(io : IO) : Nil to_s

Instance Method Detail

def title(text : String) #

Set the text of the title.


[View source]
def title_font_name(name : String) #

Set the font name of the title text (e.g., Helvetica, Georgia, Times).


[View source]
def title_font_size(size : Int32) #

Set the font point size of the title text (e.g., 10, 12, 16).


[View source]
def title_repr #

[View source]
def title_shift_along_graph_x(val : Number) #

Shift the title element along the x direction within the graph coordinate system.


[View source]
def title_shift_along_graph_y(val : Number) #

Shift the title element along the y direction within the graph coordinate system.


[View source]
def title_shift_along_screen_x(val : Number) #

Shift the title element along the x direction within the screen coordinate system.


[View source]
def title_shift_along_screen_y(val : Number) #

Shift the title element along the y direction within the screen coordinate system.


[View source]
def title_shift_along_x(val : Number) #

Shift the title element along the x direction by given number of characters (can be fraction).


[View source]
def title_shift_along_y(val : Number) #

Shift the title element along the y direction by given number of characters (can be fraction).


[View source]
def title_text_color(color : String) #

Set the color of the title text (e.g., "blue", "#404040")


[View source]