DisplayDict¶
- class marxs.visualization.utils.DisplayDict(parent, *args, **kwargs)[source]¶
Bases:
dictA dictionary to store how an element is displayed in plotting.
A dictionary of this type works just like a normal dictionary, except for an additional look-up step for keys that are not found in the dictionary itself. A
DisplayDictis initialized with a reference to the object it describes and any parameter accessed fromDisplayDictthat is not found in the dictionary will be searched for in the object’s geometry. This allows us to set any and all display settings in theDisplayDictto customize plotting in any way without affecting how the ray-trace is run (which uses only the parameters set in the geometry), but for those values that are not set, fall back to the settings of the geometry (e.g. the shape of an object is typically taken from the geometry, while the color is not).Parameters¶
- parent
marxs.base.MarxsElement Reference to the object that is described by this
DisplayDict- args, kwargs: keyword arguments
see
dictfor details
Methods Summary
get(k[,d])Methods Documentation
- parent