Dash is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library.

HighPowerLED12V

Dash is the best way to build analytical apps in Python using Plotly figures. To run the app below, run pip install dash, click "Download" to get the code and run python app.py.

HighpowerLEDFlashlight

Image

This example sets the marker color to 'rgba(135, 206, 250, 0.5)'. The rgb values of 135, 206, and 250 are from the definition of the LightSkyBlue named CSS color that is is used in the previous examples (See https://www.color-hex.com/color/87cefa). The marker line will remain opaque.

CreeLED

Each basic symbol is also represented by a number. Adding 100 to that number is equivalent to appending the suffix "-open" to a symbol name. Adding 200 is equivalent to appending "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot-open" to a symbol name.

Plotly is a free and open-source graphing library for Python. We recommend you read our Getting Started guide for the latest installation or upgrade instructions, then move on to our Plotly Fundamentals tutorials or dive straight in to some Basic Charts tutorials.

Everywhere in this page that you see fig.show(), you can display the same figure in a Dash application by passing it to the figure argument of the Graph component from the built-in dash_core_components package like this:

Sign up to stay in the loop with all things Plotly — from Dash Club to product updates, webinars, and more!

HighPowerLEDlight for Car

The basic symbols are: circle, square, diamond, cross, x, triangle, pentagon, hexagram, star, hourglass, bowtie, asterisk, hash, y, and line.

Setting opacity outside the marker will set the opacity of the trace. Thus, it will allow greater visibility of additional traces but like fully opaque it is hard to distinguish density.

When you have multiple markers at one location, you can use standoff on a marker to move it away from the other marker in the direction of the angle. In this example, we set standoff=8 on the arrow marker, which is half the size of the other circle marker, meaning it points exactly at the circle.

In the previous example, each marker has two colors, a marker color (set in Plotly Express with color="species") and a line color (set on the line with color="DarkSlateGrey". All open markers, like "diamond-open" in the following example, have a transparent fill, which means you can specify only one color. Specify this color using the marker color parameter. This controls the outline color and any dot or cross. For open markers, the line color does nothing.

HighPowerLEDdiode

In the previous example the angle reference is the default up, which means all makers start at the angle reference point of 0. Set angleref to previous and a marker will take its angle reference from the previous data point.

In the following figure, hover over a symbol to see its name or number. Set the marker_symbol attribute equal to that name or number to change the marker symbol in your figure.

HighPowerLEDChip

Get started with the official Dash docs and learn how to effortlessly style & deploy apps like this with Dash Enterprise.

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. Join now.

In order to make markers look more distinct, you can add a border to the markers. This can be achieved by adding the line property to the marker object.

Fully opaque, the default setting, is useful for non-overlapping markers. When many points overlap it can be hard to observe density.

To maximise visibility of density, it is recommended to set the opacity inside the marker marker:{opacity:0.5}. If multiple traces exist with high density, consider using marker opacity in conjunction with trace opacity.