<commit_before>import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
from utils import mkvc


class TensorView(object):
    """
    Provides viewing functions for TensorMesh

    This class is inherited by TensorMesh
    """
    def __init__(self):
        pass

    def plotImage(self, I, imageType='CC', figNum=1,ax=None,direction='z',numbering=True,annotationColor='w',showIt=False):
        """
        Mesh.plotImage(I)

        Plots scalar fields on the given mesh.

        Input:

        :param numpy.array I: scalar field

        Optional Input:

        :param str imageType: type of image ('CC','N','Fx','Fy','Fz','Ex','Ey','Ez')
        :param int figNum: number of figure to plot to
        :param matplotlib.axes.Axes ax: axis to plot to
        :param str direction: slice dimensions, 3D only ('x', 'y', 'z')
        :param bool numbering: show numbering of slices, 3D only
        :param str annotationColor: color of annotation, e.g. 'w', 'k', 'b'
        :param bool showIt: call plt.show()

        .. plot:: examples/mesh/plot_image_2D.py
           :include-source:

        .. plot:: examples/mesh/plot_image_3D.py
           :include-source:
        """
        assert type(I) == np.ndarray, "I must be a numpy array"
        assert type(numbering) == bool, "numbering must be a bool"<commit_msg>minor updates to TensorView documentation.<commit_after>import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
from utils import mkvc


class TensorView(object):
    """
    Provides viewing functions for TensorMesh

    This class is inherited by TensorMesh
    """
    def __init__(self):
        pass

    def plotImage(self, I, imageType='CC', figNum=1,ax=None,direction='z',numbering=True,annotationColor='w',showIt=False):
        """
        Mesh.plotImage(I)

        Plots scalar fields on the given mesh.

        Input:

        :param numpy.array I: scalar field

        Optional Input:

        :param str imageType: type of image ('CC','N','F','Fx','Fy','Fz','E','Ex','Ey','Ez') or combinations, e.g. ExEy or FxFz
        :param int figNum: number of figure to plot to
        :param matplotlib.axes.Axes ax: axis to plot to
        :param str direction: slice dimensions, 3D only ('x', 'y', 'z')
        :param bool numbering: show numbering of slices, 3D only
        :param str annotationColor: color of annotation, e.g. 'w', 'k', 'b'
        :param bool showIt: call plt.show()

        .. plot:: examples/mesh/plot_image_2D.py
           :include-source:

        .. plot:: examples/mesh/plot_image_3D.py
           :include-source:
        """
        assert type(I) == np.ndarray, "I must be a numpy array"
        assert type(numbering) == bool, "numbering must be a bool"
{'fraction_non_alphanumeric': 0.11535739561217269, 'fraction_numerical': 0.004953998584571833, 'mean_word_length': 2.70997375328084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2716085', 'n_tokens_mistral': 887, 'n_tokens_neox': 855, 'n_words': 279}