set_plot_colors

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

Set the display color of various element types.

Parameters

kwargsoptional keyword arguments, including:
  • pointstr, list[int, int, int], optional

    Color for nodal points. Either a string, RGB list, or hex color string. For example, point='white', point='w', point=[1, 1, 1], or point='#FFFFFF'. frame : str, list[int, int, int], optional Color for frame elements.

  • framestr, list[int, int, int], optional

    Color for frame elements.

  • trussstr, list[int, int, int], optional

    Color for truss elements.

  • linkstr, list[int, int, int], optional

    Color for link elements.

  • shellstr, list[int, int, int], optional

    Color for shell elements.

  • planestr, list[int, int, int], optional

    Color for plane elements.

  • brickstr, list[int, int, int], optional

    Color for brick (solid) elements.

  • tetstr, list[int, int, int], optional

    Color for tetrahedral (solid) elements.

  • jointstr, list[int, int, int], optional

    Color for beam-column joint elements.

  • contactstr, list[int, int, int], optional

    Color for contact elements.

  • pfemstr, list[int, int, int], optional

    Color for PFEM elements.

  • constraintstr, list[int, int, int], optional

    Color for constraint.

  • bcstr, list[int, int, int], optional

    Color for boundary conditions.

  • cmapstr, list, optional, default: “plasma”

    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

Returns

None