<commit_before>import logging
log = logging.getLogger(__name__)

import re
import numpy as np
import numbers
from inspect import signature
import matplotlib as mpl
import matplotlib.pyplot as plt
from collections import OrderedDict
from copy import deepcopy
from mpl_toolkits.mplot3d import Axes3D

from pycqed.analysis_v3 import helper_functions as hlp_mod
from pycqed.analysis_v3 import processing_pipeline as pp_mod
from pycqed.measurement.calibration.calibration_points import CalibrationPoints
from pycqed.analysis.analysis_toolbox import get_color_order as gco
from pycqed.analysis.analysis_toolbox import get_color_list
from pycqed.analysis.tools.plotting import (
    set_axis_label, flex_colormesh_plot_vs_xy, flex_color_plot_vs_x,
    SI_prefix_and_scale_factor)
from mpl_toolkits.axes_grid1 import make_axes_locatable
import datetime

import sys
pp_mod.search_modules.add(sys.modules[__name__])

prx_single_column_width = 3.404
prx_two_column_width = 7.057
# Default to PRX style, change these global variables according to journal
FIGURE_WIDTH_1COL = prx_single_column_width
FIGURE_WIDTH_2COL = prx_two_column_width

############################################
### Helper functions related to Plotting ###
############################################
def default_figure_height(figure_width):
    return figure_width*2/(1 + np.sqrt(5))


def get_default_plot_params(set_params=True, figure_width='1col',<commit_msg>plotting.py: fixes bug where global variable this_module was removed; not it is added back<commit_after>import logging
log = logging.getLogger(__name__)

import re
import numpy as np
import numbers
from inspect import signature
import matplotlib as mpl
import matplotlib.pyplot as plt
from collections import OrderedDict
from copy import deepcopy
from mpl_toolkits.mplot3d import Axes3D

from pycqed.analysis_v3 import helper_functions as hlp_mod
from pycqed.analysis_v3 import processing_pipeline as pp_mod
from pycqed.measurement.calibration.calibration_points import CalibrationPoints
from pycqed.analysis.analysis_toolbox import get_color_order as gco
from pycqed.analysis.analysis_toolbox import get_color_list
from pycqed.analysis.tools.plotting import (
    set_axis_label, flex_colormesh_plot_vs_xy, flex_color_plot_vs_x,
    SI_prefix_and_scale_factor)
from mpl_toolkits.axes_grid1 import make_axes_locatable
import datetime

import sys
this_module = sys.modules[__name__]
pp_mod.search_modules.add(this_module )

prx_single_column_width = 3.404
prx_two_column_width = 7.057
# Default to PRX style, change these global variables according to journal
FIGURE_WIDTH_1COL = prx_single_column_width
FIGURE_WIDTH_2COL = prx_two_column_width

############################################
### Helper functions related to Plotting ###
############################################
def default_figure_height(figure_width):
    return figure_width*2/(1 + np.sqrt(5))


def get_default_plot_params(set_params=True, figure_width='1col',
{'fraction_non_alphanumeric': 0.10547667342799188, 'fraction_numerical': 0.012846517917511832, 'mean_word_length': 7.576811594202899, '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': '3688541', 'n_tokens_mistral': 919, 'n_tokens_neox': 913, 'n_words': 234}