plenoptic.plot.mad_imshow_all#
- plenoptic.plot.mad_imshow_all(mad_metric1_min, mad_metric2_min, mad_metric1_max, mad_metric2_max, metric1_name=None, metric2_name=None, zoom=1, **kwargs)[source]#
Display all MAD Competition images.
To generate a full set of MAD Competition images, you need four instances: one for minimizing and maximizing each metric. This helper function creates a figure to display the full set of images.
In addition to the four MAD Competition images, this also plots the initial image from
mad_metric1_min, for comparison.- Parameters:
mad_metric1_min (
MADCompetition) –MADCompetitionobject that minimized the first metric.mad_metric2_min (
MADCompetition) –MADCompetitionobject that minimized the second metric.mad_metric1_max (
MADCompetition) –MADCompetitionobject that maximized the first metric.mad_metric2_max (
MADCompetition) –MADCompetitionobject that maximized the second metric.metric1_name (
str|None(default:None)) – Name of the first metric. IfNone, we use the name of theoptimized_metricfunction frommad_metric1_min.metric2_name (
str|None(default:None)) – Name of the second metric. IfNone, we use the name of theoptimized_metricfunction frommad_metric2_min.zoom (
int|float(default:1)) – Ratio of display pixels to image pixels. Seesynthesis_imshowfor details.**kwargs (
Any) – Passed tosynthesis_imshow.
- Return type:
- Returns:
fig – Figure containing the images.
- Raises:
ValueError – If the four
MADCompetitioninstances do not have the sameimageattribute.
See also
synthesis_imshowDisplay the image from a single
MADCompetitioninstance.synthesis_statusCreate a composite plot showing synthesis status of a single
MADCompetitioninstance.
Examples
See the MAD Competition tutorial notebooks in the User Guide of documentation for examples.