--- jupyter: jupytext: notebook_metadata_filter: all text_representation: extension: .md format_name: markdown format_version: '1.1' jupytext_version: 1.2.0 kernelspec: display_name: Python 3 language: python name: python3 language_info: codemirror_mode: name: ipython version: 3 file_extension: .py mimetype: text/x-python name: python nbconvert_exporter: python pygments_lexer: ipython3 version: 3.6.8 plotly: description: How to make Log plots in Python with Plotly. display_as: scientific language: python layout: base name: Log Plots order: 6 permalink: python/log-plot/ thumbnail: thumbnail/log.jpg --- ### Logarithmic Axes ### ```python import plotly.graph_objects as go fig = go.Figure() fig.add_trace(go.Scatter( x=[0, 1, 2, 3, 4, 5, 6, 7, 8], y=[8, 7, 6, 5, 4, 3, 2, 1, 0] )) fig.add_trace(go.Scatter( x=[0, 1, 2, 3, 4, 5, 6, 7, 8], y=[0, 1, 2, 3, 4, 5, 6, 7, 8] )) fig.update_layout(xaxis_type="log", yaxis_type="log") fig.show() ``` #### Reference See https://plot.ly/python/reference/#layout-xaxis-type for more information and chart attribute options!