<commit_before>## @package teetool
#  This module contains the Visual_2d class
#
#  See Visual_2d class for more details

import numpy as np
from scipy.interpolate import griddata
import matplotlib.pyplot as plt

import teetool as tt

## Visual_2d class generates the 2d output using Matplotlib
#
#  Even 3-dimensional trajectories can be output in 2d (sliced)
class Visual_2d(object):

    ## Constructor for Visual_2d
    # @param self object pointer
    # @param thisWorld World object, filled with trajectory data and models
    # @param kwargs additional parameters for plt.figure()
    def __init__(self, thisWorld, **kwargs):
        """
        <description>
        """

        ## figure object
        self._fig = plt.figure(facecolor="white", **kwargs)
        ## axis object
        self._ax = self._fig.gca()
        # set colour of axis
        #self._ax.set_axis_bgcolor('white')
        self._ax.set_facecolor('white')
        ## World object
        self._world = thisWorld
        ## Labels of plots
        self._labels = []

    ## Plot mean of trajectories
    # @param self object pointer
    # @param list_icluster list of clusters to plot
    # @param colour if specified, overwrites distinct colours
    # @param kwargs additional parameters for plotting
    def plotMean(self, list_icluster=None, colour=None, **kwargs):<commit_msg>commented out self._ax.set_facecolor('white'), leaving it up to the user. Older version of matplotlib threw error.<commit_after>## @package teetool
#  This module contains the Visual_2d class
#
#  See Visual_2d class for more details

import numpy as np
from scipy.interpolate import griddata
import matplotlib.pyplot as plt

import teetool as tt

## Visual_2d class generates the 2d output using Matplotlib
#
#  Even 3-dimensional trajectories can be output in 2d (sliced)
class Visual_2d(object):

    ## Constructor for Visual_2d
    # @param self object pointer
    # @param thisWorld World object, filled with trajectory data and models
    # @param kwargs additional parameters for plt.figure()
    def __init__(self, thisWorld, **kwargs):
        """
        <description>
        """

        ## figure object
        self._fig = plt.figure(facecolor="white", **kwargs)
        ## axis object
        self._ax = self._fig.gca()
        # set colour of axis
        #self._ax.set_axis_bgcolor('white')
        #self._ax.set_facecolor('white')
        ## World object
        self._world = thisWorld
        ## Labels of plots
        self._labels = []

    ## Plot mean of trajectories
    # @param self object pointer
    # @param list_icluster list of clusters to plot
    # @param colour if specified, overwrites distinct colours
    # @param kwargs additional parameters for plotting
    def plotMean(self, list_icluster=None, colour=None, **kwargs):
{'fraction_non_alphanumeric': 0.08439716312056737, 'fraction_numerical': 0.005673758865248227, 'mean_word_length': 3.035765379113019, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2717842', 'n_tokens_mistral': 803, 'n_tokens_neox': 794, 'n_words': 281}