Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cleanup #1418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2019
Merged

Cleanup #1418

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _data/cache_bust_css.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
e37c5d56b6d30ee1a2bb50451a2bd902 ../all_static/css/main.css
8b86aae596ebea1f9390d418020df20a ../all_static/css/main.css
a5765df8bc2358dd61c19edcc0cbef7d ../all_static/css/normalize.css
2 changes: 1 addition & 1 deletion _includes/breadcrumb.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<path fill="#000000" d="M2.6,10.59L8.38,4.8L10.07,6.5C9.83,7.35 10.22,8.28 11,8.73V14.27C10.4,14.61 10,15.26 10,16A2,2 0 0,0 12,18A2,2 0 0,0 14,16C14,15.26 13.6,14.61 13,14.27V9.41L15.07,11.5C15,11.65 15,11.82 15,12A2,2 0 0,0 17,14A2,2 0 0,0 19,12A2,2 0 0,0 17,10C16.82,10 16.65,10 16.5,10.07L13.93,7.5C14.19,6.57 13.71,5.55 12.78,5.16C12.35,5 11.9,4.96 11.5,5.07L9.8,3.38L10.59,2.6C11.37,1.81 12.63,1.81 13.41,2.6L21.4,10.59C22.19,11.37 22.19,12.63 21.4,13.41L13.41,21.4C12.63,22.19 11.37,22.19 10.59,21.4L2.6,13.41C1.81,12.63 1.81,11.37 2.6,10.59Z"></path>
</svg>
</div>
<span>Fork on GitHub</span>
<span>Edit this page on GitHub</span>
</a>
</div>
</section>
2 changes: 1 addition & 1 deletion _includes/plotschema-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% endif %}
{% capture graph_object %}{{ graph_object | replace: '_', ' ') | capitalize_all | replace: ' ', '' |
replace: '2d', '2D' | replace: '3d' : '3D'}}{% endcapture %}
<code>import plotly.graph_objs as go</code><br><code>go.{{ graph_object }}</code><br>
<code>import plotly.graph_objects as go</code><br><code>go.{{ graph_object }}</code><br>
A <code>{{ graph_object }}</code> trace is a graph object with any of the named arguments or attributes
listed below.
{% elsif page.language == "r" %}
Expand Down
4 changes: 2 additions & 2 deletions _posts/reference_pages/2015-08-19-plotly_js-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ <h2><code>plotly.js</code> figure reference</h2>
</div>
</div>

{% assign quote='"' %}
{% assign quote='"' %}
{% assign array='array' %}
{% assign arrays='arrays' %}
{% assign object='object' %}
{% assign object='object' %}
{% assign 2darray='2D array' %}
{% assign data_array='data array' %}
{% assign truestring='true' %}
Expand Down
71 changes: 33 additions & 38 deletions _posts/reference_pages/2015-09-06-python-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,52 +13,47 @@ <h2><code>python</code> figure reference</h2>
<summary>How are Plotly attributes organized?</summary>
<div class="row">
<p>
<code>plotly</code> charts are described <i>declaratively</i> with objects in <code>plotly.graph_objs</code> and <code>dict</code>. Every aspect of a plotly chart (the colors, the grids, the data, and so on) has a corresponding key-value attribute in these objects. This page contains an extensive list of these attributes.<br><br>
<code>plotly</code> charts are described <i>declaratively</i> with objects in <code>plotly.graph_objects</code> and <code>dict</code>. Every aspect of a plotly chart (the colors, the grids, the data, and so on) has a corresponding key-value attribute in these objects. This page contains an extensive list of these attributes.<br><br>

Plotly's graph description places attributes into two categories: traces (objects that describe a single series of data in a graph like <code>Scatter</code> or <code>Heatmap</code>) and <code>layout</code> attributes that apply to the rest of the chart, like the <code>title</code>, <code>xaxis</code>, or <code>annotations</code>).<br><br>

Here is a simple example of a plotly chart inlined with links to each attribute's reference section.

<pre>import plotly
import plotly.plotly as py
import plotly.graph_objs as go
<pre>
import plotly.graph_objects as go

print plotly.__version__ # At least 1.8.6 is required. Upgrade with: $ pip install plotly --upgrade

data = [
go.Scatter( # all "scatter" attributes: <a href="#scatter">{{ site.BASE_URL }}/python/reference/#scatter</a>
x=[1, 2, 3], # more about "x": <a href="#scatter-x">/python/reference/#scatter-x</a>
y=[3, 1, 6], # more about "y": <a href="#scatter-y">/python/reference/#scatter-y</a>
marker=dict( # marker is an dict, marker keys: <a href="#scatter-marker">/python/reference/#scatter-marker</a>
color="rgb(16, 32, 77)" # more about marker's "color": <a href="#scatter-marker-color">/python/reference/#scatter-marker-color</a>
)
),
go.Bar( # all "bar" chart attributes: <a href="#bar">/python/reference/#bar</a>
x=[1, 2, 3], # more about "x": <a href="#bar-x">/python/reference/#bar-x</a>
y=[3, 1, 6], # <a href="#bar-x">/python/reference/#bar-y</a>
name="bar chart example" # <a href="#bar-x">/python/reference/#bar-name</a>
fig = go.Figure([
go.Scatter( # all "scatter" attributes: <a href="#scatter">{{ site.BASE_URL }}/python/reference/#scatter</a>
x=[1, 2, 3], # more about "x": <a href="#scatter-x">/python/reference/#scatter-x</a>
y=[3, 1, 6], # more about "y": <a href="#scatter-y">/python/reference/#scatter-y</a>
marker=dict( # marker is an dict, marker keys: <a href="#scatter-marker">/python/reference/#scatter-marker</a>
color="rgb(16, 32, 77)" # more about marker's "color": <a href="#scatter-marker-color">/python/reference/#scatter-marker-color</a>
)
]

layout = go.Layout( # all "layout" attributes: <a href="#layout">/python/reference/#layout</a>
title="simple example", # more about "layout's" "title": <a href="#layout-title">/python/reference/#layout-title</a>
xaxis=dict( # all "layout's" "xaxis" attributes: <a href="#layout-xaxis">/python/reference/#layout-xaxis</a>
title="time" # more about "layout's" "xaxis's" "title": <a href="#layout-xaxis-title">/python/reference/#layout-xaxis-title</a>
),
annotations=[
dict( # all "annotation" attributes: <a href="#layout-annotations">/python/reference/#layout-annotations</a>
text="simple annotation", # <a href="#layout-annotations-text">/python/reference/#layout-annotations-text</a>
x=0, # <a href="#layout-annotations-x">/python/reference/#layout-annotations-x</a>
xref="paper", # <a href="#layout-annotations-xref">/python/reference/#layout-annotations-xref</a>
y=0, # <a href="#layout-annotations-y">/python/reference/#layout-annotations-y</a>
yref="paper" # <a href="#layout-annotations-yref">/python/reference/#layout-annotations-yref</a>
)
]
),
go.Bar( # all "bar" chart attributes: <a href="#bar">/python/reference/#bar</a>
x=[1, 2, 3], # more about "x": <a href="#bar-x">/python/reference/#bar-x</a>
y=[3, 1, 6], # <a href="#bar-x">/python/reference/#bar-y</a>
name="bar chart example" # <a href="#bar-x">/python/reference/#bar-name</a>
)
])

figure = go.Figure(data=data, layout=layout)
fig.update_layout( # all "layout" attributes: <a href="#layout">/python/reference/#layout</a>
title="simple example", # more about "layout's" "title": <a href="#layout-title">/python/reference/#layout-title</a>
xaxis=dict( # all "layout's" "xaxis" attributes: <a href="#layout-xaxis">/python/reference/#layout-xaxis</a>
title="time" # more about "layout's" "xaxis's" "title": <a href="#layout-xaxis-title">/python/reference/#layout-xaxis-title</a>
),
annotations=[
dict( # all "annotation" attributes: <a href="#layout-annotations">/python/reference/#layout-annotations</a>
text="simple annotation", # <a href="#layout-annotations-text">/python/reference/#layout-annotations-text</a>
x=0, # <a href="#layout-annotations-x">/python/reference/#layout-annotations-x</a>
xref="paper", # <a href="#layout-annotations-xref">/python/reference/#layout-annotations-xref</a>
y=0, # <a href="#layout-annotations-y">/python/reference/#layout-annotations-y</a>
yref="paper" # <a href="#layout-annotations-yref">/python/reference/#layout-annotations-yref</a>
)
]
)

py.plot(figure, filename='api-docs/reference-graph')</pre>
fig.show()</pre>
</p>
<hr>
</div>
Expand All @@ -75,10 +70,10 @@ <h2><code>python</code> figure reference</h2>
</div>
</div>

{% assign quote='"' %}
{% assign quote='"' %}
{% assign array='list' %}
{% assign arrays='lists' %}
{% assign object='dict' %}
{% assign object='dict' %}
{% assign 2darray='2D list' %}
{% assign data_array='data array' %}
{% assign truestring='True' %}
Expand Down
4 changes: 2 additions & 2 deletions _posts/reference_pages/2015-09-06-r-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ <h2>R figure reference</h2>
</div>
</div>

{% assign quote='"' %}
{% assign quote='"' %}
{% assign array='list' %}
{% assign arrays='lists' %}
{% assign object='named list' %}
{% assign object='named list' %}
{% assign 2darray='2D list' %}
{% assign data_array='dataframe column, list, vector' %}
{% assign truestring='TRUE' %}
Expand Down
4 changes: 2 additions & 2 deletions _posts/reference_pages/2015-09-09-matlab-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ <h2><code>matlab</code> figure reference</h2>
</div>
</div>

{% assign quote="'" %}
{% assign quote="'" %}
{% assign array='cell array' %}
{% assign arrays='cell arrays' %}
{% assign object='struct' %}
{% assign object='struct' %}
{% assign 2darray='matrix' %}
{% assign data_array='array' %}
{% assign truestring='true' %}
Expand Down
4 changes: 2 additions & 2 deletions all_static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8065,7 +8065,7 @@ pre {
.page--single .tutorial-content strong {
display: inline !important; }
.page--single .tutorial-content p, .page--single .tutorial-content section.section div.content-box, section.section .page--single .tutorial-content div.content-box {
padding: 15px;
padding: 10px;
margin: 0;
position: relative; }
.page--single .tutorial-content p img, .page--single .tutorial-content section.section div.content-box img, section.section .page--single .tutorial-content div.content-box img {
Expand Down Expand Up @@ -8274,7 +8274,7 @@ main.getting-started *[class*="-download"].button {
text-decoration: none; }

main.getting-started h4, main.getting-started .js-splash--section-title {
margin: 20px 0 !important;
margin: 20px 0;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
Expand Down
4 changes: 2 additions & 2 deletions scss/_pages/_getting-started.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ main.getting-started {
text-decoration: none;
}
h4 {
margin: $unit*2 0 !important;
margin: $unit*2 0;
align-items: center;
}
h2 {
Expand Down Expand Up @@ -74,4 +74,4 @@ h2#getting-started{
div.icon{
display: none;
}
}
}
2 changes: 1 addition & 1 deletion scss/_pages/_tutorial-single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pre {
//background: $lb;
//display: flex;
//flex-wrap:wrap;
padding: 15px;
padding: 10px;
margin: 0;
position: relative;
img {
Expand Down