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

Skip to content

Commit 8259def

Browse files
committed
Use small icon in documentation; large logo for home page only.
Update application icon to use new colors from website. svn path=/trunk/matplotlib/; revision=6209
1 parent 0f2af55 commit 8259def

6 files changed

Lines changed: 88 additions & 278 deletions

File tree

doc/_static/icon.png

589 Bytes
Loading

doc/_templates/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{% extends "layout.html" %}
22
{% set title = 'Overview' %}
3+
4+
{% block relbar1 %}
5+
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
6+
<img src="{{ pathto("_static/logo2.png", 1) }}">
7+
</div>
8+
{{ super() }}
9+
{% endblock %}
10+
311
{% block body %}
412
<h1>Welcome</h1>
513

@@ -22,10 +30,10 @@ <h1>Welcome</h1>
2230

2331
For the power user, you have full control of line styles, font
2432
properties, axes properties, etc, via an object oriented interface
25-
or via a handle graphics interface familiar to matlab users.
33+
or via a handle graphics interface familiar to Matlab&reg; users.
2634

2735
The plotting functions in the <a href=api/pyplot_api.html>pyplot</a>
28-
interface have a high degree of Matlab&reg compatibility.<p>
36+
interface have a high degree of Matlab&reg; compatibility.<p>
2937

3038
<br>
3139
<table border=1 cellpadding=3 cellspacing=2>

doc/_templates/layout.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
{% extends "!layout.html" %}
22

33
{% block rootrellink %}
4-
<li><a href="{{ pathto('index') }}">matplotlib home </a> |&nbsp;</li>
5-
<li><a href="{{ pathto('contents') }}">documentation </a> &raquo;</li>
6-
{% endblock %}
7-
8-
{% block relbar1 %}
9-
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
10-
<img src="{{ pathto("_static/logo2.png", 1) }}">
11-
</div>
12-
{{ super() }}
4+
<li><a href="{{ pathto('index') }}">
5+
<img style="border: none; vertical-align: middle;" src="{{ pathto('_static/icon.png', 1) }}" width="16" height="16"/>
6+
matplotlib home</a>&nbsp;|&nbsp;</li>
7+
<li><a href="{{ pathto('contents') }}">documentation</a> &raquo;</li>
138
{% endblock %}
149

1510
{# put the sidebar before the body #}
1611
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
1712
{% block sidebar2 %}{% endblock %}
1813

1914

20-
15+

examples/pylab_examples/matplotlib_icon.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
make the matplotlib svg minimization icon
44
"""
55
import matplotlib
6-
matplotlib.use('SVG')
6+
#matplotlib.use('Svg')
77
from pylab import *
88

99
rc('grid', ls='-', lw=2, color='k')
1010
fig = figure(figsize=(1, 1), dpi=72)
11-
axes([0.025, 0.025, 0.95, 0.95], axisbg='y')
11+
axes([0.025, 0.025, 0.95, 0.95], axisbg='#bfd1d4')
1212

1313
t = arange(0, 2, 0.05)
1414
s = sin(2*pi*t)
15-
plot(t,s, linewidth=4)
15+
plot(t,s, linewidth=4, color="#ca7900")
1616
axis([-.2, 2.2, -1.2, 1.2])
1717

18-
grid(True)
18+
# grid(True)
1919
setp(gca(), xticklabels=[], yticklabels=[])
20-
#savefig('../images/matplotlib.svg', facecolor='0.75')
20+
savefig('matplotlib.svg', facecolor='0.75')
2121

-1.24 KB
Loading

0 commit comments

Comments
 (0)