# Difference between revisions of "Transformations"

From Pynomo

(New page: = PyNomo transformations = In PyNomo, scales and blocks are first built and transformation is applied in the final stage. This approach is due to the idea, that blocks should be easy to al...) |
(→PyNomo transformations) |
||

Line 5: | Line 5: | ||

In general translations, rotations, shear and projective transformations can be applied to the nomograph. PyNomo does not support transformations yet extensively, but has only limited number of transformations available. | In general translations, rotations, shear and projective transformations can be applied to the nomograph. PyNomo does not support transformations yet extensively, but has only limited number of transformations available. | ||

− | Transformation is applied in | + | Transformation is applied in the final definion (dict) of nomograph (main_params below): |

<source lang=python> | <source lang=python> | ||

... | ... |

## Revision as of 18:42, 8 October 2008

# PyNomo transformations

In PyNomo, scales and blocks are first built and transformation is applied in the final stage. This approach is due to the idea, that blocks should be easy to align with respect to each other. If tranformations are applied to individual blocks, one has to be careful that scalings of the aligned blocks still match. Only block oftype 9 can be transformed initially.

In general translations, rotations, shear and projective transformations can be applied to the nomograph. PyNomo does not support transformations yet extensively, but has only limited number of transformations available.

Transformation is applied in the final definion (dict) of nomograph (main_params below):

... # define nomograph main_params={ 'filename':'filename_of_nomograph.pdf', 'block_params':[block_1,block_2], 'transformations':[('scale paper',)], # <-- HERE are transformations as alist of tuples } # create nomograph Nomographer(main_params)