set_plot_props

opstool.vis.plotly.set_plot_props(**kwargs)[source]

Set ploting properties.

Parameters

kwargs: optional keyword arguments, including:
  • point_sizefloat, optional

    Point size of any nodes. Default 5.0

  • line_widthfloat, optional

    Thickness of line elements. Only valid for wireframe and surface representations. Default 3.0.

  • cmapstr, list, optional, default: None

    One of the following named colorscales: [“aggrnyl”, “agsunset”, “algae”, “amp”, “armyrose”, “balance”, “blackbody”, “bluered”, “blues”, “blugrn”, “bluyl”, “brbg”, “brwnyl”, “bugn”, “bupu”, “burg”, “burgyl”, “cividis”, “curl”, “darkmint”, “deep”, “delta”, “dense”, “earth”, “edge”, “electric”, “emrld”, “fall”, “geyser”, “gnbu”, “gray”, “greens”, “greys”, “haline”, “hot”, “hsv”, “ice”, “icefire”, “inferno”, “jet”, “magenta”, “magma”, “matter”, “mint”, “mrybm”, “mygbm”, “oranges”, “orrd”, “oryel”, “oxy”, “peach”, “phase”, “picnic”, “pinkyl”, “piyg”, “plasma”, “plotly3”, “portland”, “prgn”, “pubu”, “pubugn”, “puor”, “purd”, “purp”, “purples”, “purpor”, “rainbow”, “rdbu”, “rdgy”, “rdpu”, “rdylbu”, “rdylgn”, “redor”, “reds”, “solar”, “spectral”, “speed”, “sunset”, “sunsetdark”, “teal”, “tealgrn”, “tealrose”, “tempo”, “temps”, “thermal”, “tropic”, “turbid”, “turbo”, “twilight”, “viridis”, “ylgn”, “ylgnbu”, “ylorbr”, “ylorrd”].

    Appending “_r” to a named colorscale reverses it.

  • cmap_modelstr, list, optional, default=None

    Matplotlib colormap used for geometry model visualization. Same as cmap, except that this parameter will be used for geometry model visualization and will be automatically mapped according to different element types. If None, If None, the color specified in the function``set_plot_colors`` will be used.

    Available color maps are shown in Colormaps in Matplotlib

  • themestr, optional, default: “plotly”

    Available theme templates for plotly: [‘ggplot2’, ‘seaborn’, ‘simple_white’, ‘plotly’, ‘plotly_white’, ‘plotly_dark’, ‘presentation’, ‘xgridoff’, ‘ygridoff’, ‘gridon’, ‘none’]

  • window_sizelist, optional

    Window size in pixels. Default to (None, None)

  • show_mesh_edges: bool, default: True

    Whether to display the mesh edges of planes, plates, shells, and solid elements.

  • mesh_edge_color: str, default: black

    Color of the mesh edges for planes, plates, shells, and solid elements.

  • mesh_edge_width: float, default: 1.0

    Width of the mesh edges for planes, plates, shells, and solid elements.

  • mesh_opacity: float, default: 1.0

    Display opacity for planes, plates, shells, and solid elements.

  • font_familystr, optional, default: “Arial, sans-serif”

    HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren”t available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include “Arial”, “Balto”, “Courier New”, “Droid Sans”, “Droid Serif”, “Droid Sans Mono”, “Gravitas One”, “Old Standard TT”, “Open Sans”, “Overpass”, “PT Sans Narrow”, “Raleway”, “Times New Roman”.

  • scale_factorfloat, optional

    Scale factor between the maximum deformation of the model and the maximum boundary size. Default 1 / 20.

  • font_size: int, default: 15

    Font size of labels.

  • title_font_size: int, default: 18

    Font size of title.

Returns

None