Difference between revisions of "Template:Axis params"
Line 84: | Line 84: | ||
| Field18c = If axis is aligned with other axis, this value y offsets final scale | | Field18c = If axis is aligned with other axis, this value y offsets final scale | ||
− | | Field19a = ' | + | | Field19a = 'text_format' |
− | | Field19b = -- | + | | Field19b = r"$%3.2f$ " |
− | | | + | | Field19c = Format for numbers in scale. |
+ | |||
+ | | Field20a = 'extra_params' | ||
+ | | Field20b = -- | ||
+ | | Field20c = List of dictionary of params to be drawn additionally. | ||
}} | }} |
Revision as of 17:58, 7 September 2008
Common axis parameters | ||
---|---|---|
Parameter | Default value | Explanation |
'ID' | 'none' |
To identify the axis |
'tag' | 'none' |
To align blocks w.r.t each other along axes with same tag |
'title' | '' |
Axis title |
'title_x_shift' | 0.0 |
Title shift in x-direction |
'title_y_shift' | 0.25 |
Title shift in y-direction |
'scale_type' | 'linear' |
Scale type. can be
|
'tick_levels' | 4 |
How many levels (minor, minor-minor, etc.) of ticks are drawn. Largest effect to 'linear' scale. |
'tick_text_levels' | 3 |
How many levels (minor, minor-minor, etc.) of texts are drawn. Largest effect to 'linear' scale. |
'tick_side' | 'right' |
Tick and text side in final paper. Can be:
|
'reference' | False |
If axis is treated as reference line that is a turning point. |
'reference_padding' | 0.2 |
Fraction of reference line over other lines |
'manual_axis_data' | {} |
Manually set tick/point positions and text positions. Could be for example: {1:'1',3.14:r'$\pi$',5:'5',7:'seven',10:'10'} |
'title_draw_center' | False |
Title is drawn to center of line |
'title_distance_center' | 0.5 |
Distance of centered title from line if centered title |
'title_opposite_tick' | True |
Title in opposite direction w.r.t ticks |
'align_func' | lambda u:u |
function to align different scalings |
'align_x_offset' | 0.0 |
If axis is aligned with other axis, this value x offsets final scale |
'align_y_offset' | 0.0 |
If axis is aligned with other axis, this value y offsets final scale |
'text_format' | r"$%3.2f$ " |
Format for numbers in scale. |
'extra_params' | -- |
List of dictionary of params to be drawn additionally. |