def __init__(self, vals, model, data_visualize, latent_axes=None, sense_axes=None, latent_index=[<NUM_LIT:0>,<NUM_LIT:1>], disable_drag=False):
if vals is None:<EOL><INDENT>if isinstance(model.X, VariationalPosterior):<EOL><INDENT>vals = model.X.mean.values<EOL><DEDENT>else:<EOL><INDENT>vals = model.X.values<EOL><DEDENT><DEDENT>if len(vals.shape)==<NUM_LIT:1>:<EOL><INDENT>vals = vals[None,:]<EOL><DEDENT>matplotlib_show.__init__(self, vals, axes=latent_axes)<EOL>if isinstance(latent_axes,mpl.axes.Axes):<EOL><INDENT>self.cid = latent_axes.figure.canvas.mpl_connect('<STR_LIT>', self.on_click)<EOL>if not disable_drag:<EOL><INDENT>self.cid = latent_axes.figure.canvas.mpl_connect('<STR_LIT>', self.on_move)<EOL><DEDENT>self.cid = latent_axes.figure.canvas.mpl_connect('<STR_LIT>', self.on_leave)<EOL>self.cid = latent_axes.figure.canvas.mpl_connect('<STR_LIT>', self.on_enter)<EOL><DEDENT>else:<EOL><INDENT>self.cid = latent_axes[<NUM_LIT:0>].figure.canvas.mpl_connect('<STR_LIT>', self.on_click)<EOL>if not disable_drag:<EOL><INDENT>self.cid = latent_axes[<NUM_LIT:0>].figure.canvas.mpl_connect('<STR_LIT>', self.on_move)<EOL><DEDENT>self.cid = latent_axes[<NUM_LIT:0>].figure.canvas.mpl_connect('<STR_LIT>', self.on_leave)<EOL>self.cid = latent_axes[<NUM_LIT:0>].figure.canvas.mpl_connect('<STR_LIT>', self.on_enter)<EOL><DEDENT>self.data_visualize = data_visualize<EOL>self.model = model<EOL>self.latent_axes = latent_axes<EOL>self.sense_axes = sense_axes<EOL>self.called = False<EOL>self.move_on = False<EOL>self.latent_index = latent_index<EOL>self.latent_dim = model.input_dim<EOL>self.disable_drag = disable_drag<EOL>self.latent_values = vals<EOL>self.latent_handle = self.latent_axes.plot([<NUM_LIT:0>],[<NUM_LIT:0>],'<STR_LIT>',mew=<NUM_LIT:2>)[<NUM_LIT:0>]<EOL>self.modify(vals)<EOL>self.show_sensitivities()<EOL>
Visualize a latent variable model

        :param model: the latent variable model to visualize.
        :param data_visualize: the object used to visualize the data which has been modelled.
        :type data_visualize: visualize.data_show  type.
        :param latent_axes: the axes where the latent visualization should be plotted.