Module Expr Str Assign NameStore Str Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Import alias Import alias ImportFrom alias identifier Import alias ClassDef bases NameLoad body Expr Str Pass decorator_list Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str ImportFrom alias alias alias alias alias alias Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Num Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad Num NameLoad body Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num If NameLoad body Assign NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Index Num If NameLoad body If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad If NameLoad body If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad If NameLoad body If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias alias Import alias Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Num keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Str body If Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign NameStore Str orelse Assign NameStore Str If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Str body If CompareIn Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Print Call AttributeLoad Str attr NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareIn Str NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareIn Str NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A  A Look Up Table plotting tool based on OpenColorIO and matplotlib.

.. moduleauthor:: `Marie FETIVEAU <github.com/mfe>`_

 N/A __version__ 0.1 N/A os PyOpenColorIO.Constants INTERP_LINEAR utils.ocio_helper OCIO_LUTS_FORMATS create_ocio_processor is_3d_lut utils.lut_utils get_3d_list_values N/A matplotlib N/A itertools utils matplotlib_helper mplh N/A ntpath PlotThatLutException N/A Exception N/A N/A Module custom exception

    Args:
        Exception

     N/A N/A N/A DEFAULT_SAMPLE 256 N/A DEFAULT_CUBE_SIZE 17 show_plot N/A N/A fig filename N/A N/A N/A Plot the figure depending on the backend

    Args:
        fig (matplotlib.pyplot.figure): figure to plot

        filename (str): associated lut filename

    Returns:
        str.
            if in web mode, an html string,
            else a void string.

     N/A N/A mplh WEB_MODE N/A N/A split_filename N/A N/A N/A os path splitext filename N/A filename N/A N/A {0}{1} format N/A split_filename N/A 0 N/A N/A N/A split_filename N/A 1 replace . _ N/A current_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A current_dir N/A N/A N/A os path join N/A N/A N/A os path dirname current_dir web_app N/A export_path N/A N/A img/export_{0}.png format filename N/A abs_export_path N/A N/A {0}/img/export_{1}.png format current_dir filename N/A abs_export_path N/A N/A N/A fig savefig abs_export_path N/A export_path N/A N/A N/A N/A N/A matplotlib pyplot show N/A N/A plot_curve N/A N/A lutfiles samples_count processors draw_red_curve draw_green_curve draw_blue_curve display_markers N/A True True True False N/A N/A Plot a lutfile as a curve

    Args:
        lutfiles ([str]): pathes to color transformation files (lut, matrix...)

        samples_count (int): number of points for the displayed curve

        processors ([PyOpenColorIO.config.Processor]): OpenColorIO processors
        for lutfiles

        draw_red_curve (bool): plot red curve only

        draw_green_curve (bool): plot green curve only

        draw_blue_curve (bool): plot blue curve only

        display_markers (bool): should display markers on curve

    Returns:
            str.

     matplotlib.pyplot title plot xlabel ylabel grid figure N/A fig N/A figure N/A N/A N/A N/A fig canvas set_window_title Plot That 1D LUT N/A figure_title N/A lutfile lutfiles N/A N/A filename N/A N/A N/A os path basename lutfile N/A figure_title N/A N/A {0}
{1} format figure_title filename N/A N/A title figure_title N/A N/A xlabel Input N/A N/A ylabel Output N/A N/A grid True N/A markers_it N/A N/A itertools cycle N/A mplh MARKERS N/A reds_it N/A N/A itertools cycle N/A mplh REDS N/A greens_it N/A N/A itertools cycle N/A mplh GREENS N/A blues_it N/A N/A itertools cycle N/A mplh BLUES N/A N/A lutfile processor N/A N/A itertools izip lutfiles processors N/A N/A max_value N/A samples_count 1.0 N/A red_values N/A N/A green_values N/A N/A blue_values N/A N/A input_range N/A N/A code_value N/A range 0 samples_count N/A N/A norm_value N/A code_value max_value N/A res N/A N/A processor applyRGB N/A norm_value norm_value norm_value N/A N/A N/A red_values append N/A res N/A 0 N/A N/A N/A green_values append N/A res N/A 1 N/A N/A N/A blue_values append N/A res N/A 2 N/A N/A N/A input_range append norm_value N/A marker N/A N/A markers_it next N/A markersize 0 N/A display_markers N/A N/A markersize 4 N/A labelbase N/A N/A N/A N/A os path splitext N/A N/A ntpath basename lutfile N/A 0 N/A draw_red_curve N/A N/A N/A N/A draw_blue_curve N/A draw_green_curve N/A N/A label labelbase N/A N/A label N/A N/A {0} (R) format labelbase N/A N/A plot input_range red_values color N/A N/A reds_it next marker marker label label linewidth 1 markersize markersize N/A draw_green_curve N/A N/A N/A N/A draw_blue_curve N/A draw_red_curve N/A N/A label labelbase N/A N/A label N/A N/A {0} (G) format labelbase N/A N/A plot input_range green_values color N/A N/A greens_it next marker marker label label linewidth 1 markersize markersize N/A draw_blue_curve N/A N/A N/A N/A draw_green_curve N/A draw_red_curve N/A N/A label labelbase N/A N/A label N/A N/A {0} (B) format labelbase N/A N/A plot input_range blue_values color N/A N/A blues_it next marker marker label label linewidth 1 markersize markersize N/A N/A N/A N/A matplotlib pyplot legend loc 4 N/A N/A show_plot fig filename N/A plot_cube N/A N/A lutfile cube_size processor N/A N/A N/A Plot a lutfile as a cube

    Args:
        lutfile (str): path to a color transformation file (lut, matrix...)

        cube_size (int): number of segments. Ex : If set to 17, 17*17*17
        points will be displayed

        processor (PyOpenColorIO.config.Processor): an OpenColorIO processor
        for lutfile

    Returns:
        str.

     matplotlib.pyplot title figure N/A mpl_toolkits.mplot3d N/A processed_values N/A get_3d_list_values cube_size processor hexa_values True N/A red_values N/A processed_values N/A red_values N/A green_values N/A processed_values N/A green_values N/A blue_values N/A processed_values N/A blue_values N/A input_colors N/A processed_values N/A input_colors N/A fig N/A figure N/A N/A N/A N/A fig canvas set_window_title Plot That 3D LUT N/A axis N/A N/A fig add_subplot 111 projection 3d N/A N/A N/A axis set_xlabel Red N/A N/A N/A axis set_ylabel Green N/A N/A N/A axis set_zlabel Blue N/A N/A N/A axis set_xlim N/A min red_values N/A max red_values N/A N/A N/A axis set_ylim N/A min green_values N/A max green_values N/A N/A N/A axis set_zlim N/A min blue_values N/A max blue_values N/A filename N/A N/A N/A os path basename lutfile N/A N/A title filename N/A N/A N/A axis scatter red_values green_values blue_values c input_colors marker o N/A N/A show_plot fig filename N/A supported_formats N/A N/A N/A N/A N/A Return supported formats

    Returns:
        str.

     N/A N/A N/A Supported LUT formats : {0} format N/A N/A ,  join OCIO_LUTS_FORMATS N/A plot_that_lut N/A N/A lutfiles plot_type count inverse prelutfile postlutfile display_markers N/A None None False None None False N/A N/A Plot a lut depending on its type and/or args

    Args:
        lutfiles (str): pathes to color transformation files (lut, matrix...)

    kwargs:
        plot_type (str): possible values are 'curve' or 'cube'

        count: possible values are curve size or curve samples count or 'auto'

        prelutfile (str): path to a pre LUT

        postlutfile (str): path to a post LUT

        display_markers (bool): should display markers on curve

    Raises:
        PlotThatLutException
        Exception from OpenColorIO binding

     N/A N/A N/A isinstance lutfiles list N/A N/A lutfiles N/A lutfiles N/A N/A N/A mplh set_matplotlib_backend N/A processors N/A N/A lutfile lutfiles N/A N/A fileext N/A N/A N/A N/A os path splitext lutfile N/A 1 N/A N/A fileext N/A N/A N/A PlotThatLutException N/A N/A Error: Couldn't extract extension in this
path : {0} format lutfile N/A N/A fileext OCIO_LUTS_FORMATS N/A N/A N/A PlotThatLutException N/A N/A Error: {0} file aren't supported.
{1} format fileext N/A supported_formats N/A N/A N/A processors append N/A create_ocio_processor lutfile INTERP_LINEAR inverse prelutfile postlutfile N/A N/A N/A plot_type N/A plot_type auto N/A N/A N/A is_3d_lut N/A processors N/A 0 N/A lutfiles N/A 0 N/A N/A plot_type cube N/A N/A plot_type curve N/A N/A N/A count N/A count auto N/A N/A N/A curve plot_type N/A N/A count DEFAULT_SAMPLE N/A N/A count DEFAULT_CUBE_SIZE N/A N/A N/A Plotting a {0} with {1} samples... format plot_type count N/A N/A curve plot_type N/A N/A draw_red_curve True N/A draw_green_curve True N/A draw_blue_curve True N/A N/A red plot_type N/A N/A draw_green_curve False N/A draw_blue_curve False N/A N/A N/A green plot_type N/A N/A draw_red_curve False N/A draw_blue_curve False N/A N/A N/A blue plot_type N/A N/A draw_red_curve False N/A draw_green_curve False N/A N/A plot_curve lutfiles count processors draw_red_curve draw_red_curve draw_green_curve draw_green_curve draw_blue_curve draw_blue_curve display_markers display_markers N/A N/A N/A plot_type cube N/A N/A N/A plot_cube N/A lutfiles N/A 0 count N/A processors N/A 0 N/A N/A N/A PlotThatLutException N/A N/A Unknown plot type : {0}
Plot type should be curve or cube.
 format plot_type N/A