forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
46 lines (45 loc) · 1.68 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<script src="/static/mpl.js"></script>
<link href="/static/mpl.css" rel="stylesheet" type="text/css">
</head>
<body
onkeydown="key_event(event, 'key_press')"
onkeyup="key_event(event, 'key_release')">
<div id="mpl-div">
<canvas id="mpl-canvas"
class="mpl-canvas"
width="800" height="600"
onmousedown="mouse_event(event, 'button_press')"
onmouseup="mouse_event(event, 'button_release')"
onmousemove="mouse_event(event, 'motion_notify')">
</canvas>
<div id="toolbar">
{% for name, tooltip, image, method in toolitems %}
{% if name is None %}
<span class="mpl-toolbar-spacer"></span>
{% else %}
<button id="{{ name }}"
class="mpl-toolbar-button"
role="button">
<img src="/images/{{ image }}.png" width="24" height="24"
onclick="toolbar_button_onclick('{{ method }}');"
onmouseover="toolbar_button_onmouseover('{{ tooltip }}');"
alt="{{ tooltip }}"/>
</button>
{% end %}
{% end %}
<select id="mpl-format" class="mpl-toolbar-option">
{% for filetype, extensions in sorted(canvas.get_supported_filetypes_grouped().items()) %}
<option value="{{ extensions[0] }}"
{% if extensions[0] == canvas.get_default_filetype() %}
selected
{% end %}
>{{filetype}} ({{", ".join(extensions)}})</option>
{% end %}
</select>
<span id="mpl-message" class="mpl-message"/>
</div>
</div>
</body>
</html>