<commit_before>'''
.. module:: skrf.plotting
========================================
plotting (:mod:`skrf.plotting`)
========================================


This module provides general plotting functions.

Plots and Charts
------------------

.. autosummary::
    :toctree: generated/

    smith
    plot_smith
    plot_rectangular
    plot_polar
    plot_complex_rectangular
    plot_complex_polar
    plot_v_frequency
    plot_it_all
    
    plot_minmax_bounds_component
    plot_minmax_bounds_s_db
    plot_minmax_bounds_s_db10
    plot_minmax_bounds_s_time_db
    
    plot_uncertainty_bounds_component
    plot_uncertainty_bounds_s
    plot_uncertainty_bounds_s_db
    plot_uncertainty_bounds_s_time_db
    
    plot_passivity    
    plot_logsigma
    
    plot_circuit_graph

    plot_contour

Misc Functions
-----------------

.. autosummary::
    :toctree: generated/

    stylely
    save_all_figs
    add_markers_to_lines
    legend_off
    func_on_all_figs
    scrape_legend
    signature

'''
import os

import matplotlib as mpl
# if running on remote mode on a server which does not have a display (like Docker images for CI)
if not os.environ.get('DISPLAY', '') and mpl.rcParams['backend'] != 'agg': 
    print('No display found. Using non-interactive Agg backend.') 
    # https://matplotlib.org/faq/usage_faq.html 
    mpl.use('Agg') 
from matplotlib import ticker
import matplotlib.pyplot as plb
import numpy as npy
from matplotlib.patches import Circle   # for drawing smith chart
from matplotlib.pyplot import quiver
from matplotlib import rcParams
from matplotlib.dates import date2num

from . import network, frequency, calibration, networkSet, circuit
from . import mathFunctions as mf
from . util import now_string_2_dt
import matplotlib.tri as tri

try:
    import networkx as nx
except ImportError as e:
    pass

#from matplotlib.lines import Line2D            # for drawing smith chart
<commit_msg>test for linux machine only<commit_after>'''
.. module:: skrf.plotting
========================================
plotting (:mod:`skrf.plotting`)
========================================


This module provides general plotting functions.

Plots and Charts
------------------

.. autosummary::
    :toctree: generated/

    smith
    plot_smith
    plot_rectangular
    plot_polar
    plot_complex_rectangular
    plot_complex_polar
    plot_v_frequency
    plot_it_all
    
    plot_minmax_bounds_component
    plot_minmax_bounds_s_db
    plot_minmax_bounds_s_db10
    plot_minmax_bounds_s_time_db
    
    plot_uncertainty_bounds_component
    plot_uncertainty_bounds_s
    plot_uncertainty_bounds_s_db
    plot_uncertainty_bounds_s_time_db
    
    plot_passivity    
    plot_logsigma
    
    plot_circuit_graph

    plot_contour

Misc Functions
-----------------

.. autosummary::
    :toctree: generated/

    stylely
    save_all_figs
    add_markers_to_lines
    legend_off
    func_on_all_figs
    scrape_legend
    signature

'''
import os

import matplotlib as mpl
# if running on remote mode on a linux server which does not have a display (like Docker images for CI)
if os.name == 'posix' and not os.environ.get('DISPLAY', '') and mpl.rcParams['backend'] != 'agg': 
    print('No display found. Using non-interactive Agg backend.') 
    # https://matplotlib.org/faq/usage_faq.html 
    mpl.use('Agg') 
from matplotlib import ticker
import matplotlib.pyplot as plb
import numpy as npy
from matplotlib.patches import Circle   # for drawing smith chart
from matplotlib.pyplot import quiver
from matplotlib import rcParams
from matplotlib.dates import date2num

from . import network, frequency, calibration, networkSet, circuit
from . import mathFunctions as mf
from . util import now_string_2_dt
import matplotlib.tri as tri

try:
    import networkx as nx
except ImportError as e:
    pass

#from matplotlib.lines import Line2D            # for drawing smith chart

{'fraction_non_alphanumeric': 0.10929101612490402, 'fraction_numerical': 0.002559508574353724, 'mean_word_length': 3.4358683314415437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3049959', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1200, 'n_words': 326}