jupyter |
jupytext |
kernelspec |
language_info |
plotly |
notebook_metadata_filter |
text_representation |
all |
extension |
format_name |
format_version |
jupytext_version |
.md |
markdown |
1.1 |
1.2.0 |
|
|
display_name |
language |
name |
Python 3 |
python |
python3 |
|
codemirror_mode |
file_extension |
mimetype |
name |
nbconvert_exporter |
pygments_lexer |
version |
|
.py |
text/x-python |
python |
python |
ipython3 |
3.6.8 |
|
description |
display_as |
language |
layout |
name |
order |
permalink |
thumbnail |
How to make Log plots in Python with Plotly. |
scientific |
python |
base |
Log Plots |
5 |
python/log-plot/ |
thumbnail/log.jpg |
|
|
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()
See https://plotly.com/python/reference/#layout-xaxis-type for more information and chart attribute options!