File:Dieselprice weekly germany2014.svg

Summary

Description
English: Plot of deviations in percent from the average weekly price for diesel gasoline in Germany from November 2014 to June 2015. Data source: Markttransparenzstelle für Kraftstoffe
Date
Source Own work
Author Geek3
Other versions
SVG development
InfoField
Source code
InfoField
Python Matplotlib source code
#!/usr/bin/python
# -*- coding: utf8 -*-

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import string

fname = 'dieselprice_weekly_germany2014'

# deviations in percent from the average weekly price for diesel gasoline
# in Germany Nov2014 - Jun2015
# all values are spaced by 5 minutes starting at 0:00 on Monday morning
# source: Markttransparenzstelle für Kraftstoffe
diesel_pricedev_perc_week_5m = [
3.490, 3.496, 3.507, 3.507, 3.511, 3.511,
3.511, 3.508, 3.509, 3.514, 3.512, 3.512,
3.512, 3.515, 3.515, 3.518, 3.525, 3.525,
3.525, 3.528, 3.526, 3.526, 3.526, 3.526,
3.526, 3.527, 3.530, 3.530, 3.533, 3.533,
3.531, 3.534, 3.531, 3.534, 3.534, 3.534,
3.535, 3.546, 3.549, 3.551, 3.551, 3.552,
3.552, 3.553, 3.553, 3.553, 3.548, 3.551,
3.552, 3.546, 3.560, 3.555, 3.549, 3.544,
3.544, 3.550, 3.542, 3.539, 3.540, 3.537,
3.537, 3.455, 3.384, 3.362, 3.317, 3.129,
2.942, 2.837, 2.782, 2.748, 2.718, 2.693,
2.649, 2.621, 2.592, 2.560, 2.498, 2.395,
2.293, 2.226, 2.131, 2.082, 1.993, 1.937,
1.890, 1.837, 1.776, 1.715, 1.648, 1.570,
1.495, 1.436, 1.366, 1.331, 1.266, 1.228,
1.169, 1.121, 1.071, 1.024, 0.949, 0.874,
0.818, 0.768, 0.706, 0.648, 0.581, 0.534,
0.466, 0.427, 0.363, 0.308, 0.255, 0.188,
0.132, 0.073, 0.011, -0.043, -0.105, -0.152,
-0.209, -0.253, -0.314, -0.370, -0.417, -0.473,
-0.538, -0.583, -0.635, -0.674, -0.722, -0.764,
-0.811, -0.844, -0.900, -0.956, -1.009, -1.068,
-1.112, -1.160, -1.219, -1.264, -1.308, -1.356,
-1.417, -1.462, -1.518, -1.571, -1.613, -1.680,
-1.722, -1.778, -1.827, -1.870, -1.911, -1.962,
-1.990, -2.029, -2.070, -2.121, -2.163, -2.194,
-2.238, -2.266, -2.297, -2.336, -2.359, -2.386,
-2.425, -2.444, -2.495, -2.537, -2.584, -2.612,
-2.656, -2.673, -2.721, -2.743, -2.759, -2.807,
-2.827, -2.852, -2.885, -2.918, -2.949, -2.985,
-3.021, -3.038, -3.074, -3.094, -3.127, -3.160,
-3.172, -3.202, -3.238, -3.249, -3.280, -3.314,
-3.336, -3.363, -3.388, -3.404, -3.436, -3.458,
-3.491, -3.505, -3.527, -3.555, -3.576, -3.593,
-3.624, -3.635, -3.649, -3.673, -3.690, -3.704,
-3.715, -3.740, -3.759, -3.776, -3.793, -3.801,
-3.817, -3.829, -3.842, -3.853, -3.870, -3.878,
-3.884, -3.780, -3.777, -3.783, -3.796, -3.796,
-3.802, -3.812, -3.812, -3.823, -3.826, -3.831,
-3.831, -2.915, -2.745, -2.742, -2.731, -2.720,
-2.728, -2.689, -2.666, -2.647, -2.641, -2.632,
-2.623, -2.064, -1.455, -1.421, -1.423, -1.415,
-1.403, -1.389, -1.380, -1.380, -1.372, -1.363,
-0.807, 0.462, 0.783, 0.921, 0.964, 1.006,
1.020, 1.041, 1.066, 1.077, 1.189, 1.234,
1.431, 2.205, 2.806, 2.999, 3.281, 3.373,
3.436, 3.463, 3.500, 3.517, 3.526, 3.537,
3.538, 3.546, 3.546, 3.547, 3.547, 3.547,
3.550, 3.550, 3.556, 3.554, 3.554, 3.554,
3.555, 3.557, 3.563, 3.563, 3.569, 3.572,
3.575, 3.570, 3.576, 3.576, 3.576, 3.576,
3.579, 3.579, 3.582, 3.586, 3.586, 3.586,
3.586, 3.586, 3.587, 3.587, 3.587, 3.587,
3.588, 3.596, 3.596, 3.602, 3.602, 3.603,
3.606, 3.606, 3.604, 3.604, 3.604, 3.610,
3.613, 3.611, 3.613, 3.608, 3.605, 3.600,
3.598, 3.595, 3.593, 3.595, 3.593, 3.582,
3.579, 3.487, 3.432, 3.407, 3.374, 3.248,
3.074, 2.959, 2.897, 2.852, 2.813, 2.791,
2.746, 2.713, 2.682, 2.654, 2.590, 2.477,
2.357, 2.285, 2.190, 2.109, 2.032, 1.985,
1.910, 1.857, 1.807, 1.735, 1.665, 1.579,
1.498, 1.448, 1.379, 1.332, 1.264, 1.212,
1.154, 1.109, 1.067, 1.011, 0.959, 0.883,
0.811, 0.766, 0.693, 0.643, 0.598, 0.529,
0.479, 0.425, 0.367, 0.325, 0.249, 0.200,
0.143, 0.096, 0.035, -0.027, -0.085, -0.138,
-0.183, -0.228, -0.281, -0.342, -0.387, -0.460,
-0.504, -0.554, -0.594, -0.644, -0.686, -0.745,
-0.773, -0.820, -0.862, -0.927, -0.988, -1.024,
-1.080, -1.128, -1.184, -1.228, -1.273, -1.320,
-1.368, -1.404, -1.474, -1.519, -1.555, -1.628,
-1.667, -1.718, -1.773, -1.810, -1.844, -1.886,
-1.925, -1.950, -2.004, -2.037, -2.079, -2.115,
-2.154, -2.190, -2.221, -2.260, -2.293, -2.324,
-2.363, -2.385, -2.433, -2.461, -2.508, -2.538,
-2.581, -2.606, -2.637, -2.666, -2.692, -2.730,
-2.755, -2.779, -2.820, -2.838, -2.879, -2.909,
-2.941, -2.979, -2.995, -3.027, -3.052, -3.089,
-3.105, -3.138, -3.167, -3.189, -3.229, -3.250,
-3.280, -3.310, -3.344, -3.363, -3.388, -3.418,
-3.442, -3.460, -3.484, -3.517, -3.544, -3.563,
-3.579, -3.603, -3.630, -3.646, -3.662, -3.678,
-3.708, -3.716, -3.727, -3.746, -3.778, -3.791,
-3.802, -3.804, -3.823, -3.843, -3.856, -3.861,
-3.869, -3.778, -3.771, -3.776, -3.776, -3.787,
-3.793, -3.801, -3.806, -3.809, -3.816, -3.816,
-3.816, -2.979, -2.753, -2.745, -2.734, -2.728,
-2.714, -2.681, -2.649, -2.635, -2.627, -2.627,
-2.618, -2.071, -1.504, -1.459, -1.456, -1.442,
-1.439, -1.422, -1.417, -1.417, -1.406, -1.397,
-0.822, 0.357, 0.748, 0.880, 0.950, 1.007,
1.021, 1.043, 1.076, 1.092, 1.211, 1.255,
1.461, 2.211, 2.735, 2.980, 3.271, 3.326,
3.369, 3.410, 3.445, 3.456, 3.451, 3.473,
3.476, 3.479, 3.485, 3.485, 3.485, 3.489,
3.489, 3.497, 3.492, 3.492, 3.492, 3.530,
3.530, 3.535, 3.544, 3.547, 3.564, 3.567,
3.567, 3.570, 3.573, 3.576, 3.582, 3.580,
3.582, 3.583, 3.583, 3.583, 3.586, 3.586,
3.586, 3.589, 3.589, 3.590, 3.590, 3.590,
3.590, 3.596, 3.604, 3.604, 3.605, 3.607,
3.607, 3.608, 3.611, 3.608, 3.605, 3.608,
3.608, 3.598, 3.609, 3.609, 3.593, 3.590,
3.579, 3.578, 3.570, 3.573, 3.573, 3.554,
3.552, 3.472, 3.417, 3.393, 3.355, 3.203,
3.025, 2.909, 2.851, 2.819, 2.779, 2.755,
2.717, 2.676, 2.647, 2.614, 2.536, 2.412,
2.305, 2.222, 2.128, 2.063, 1.975, 1.916,
1.843, 1.804, 1.736, 1.672, 1.591, 1.518,
1.440, 1.381, 1.325, 1.260, 1.198, 1.142,
1.077, 1.039, 0.988, 0.932, 0.867, 0.794,
0.716, 0.675, 0.618, 0.554, 0.494, 0.440,
0.389, 0.337, 0.276, 0.222, 0.165, 0.100,
0.047, -0.002, -0.054, -0.127, -0.175, -0.221,
-0.275, -0.324, -0.369, -0.422, -0.483, -0.540,
-0.598, -0.645, -0.694, -0.742, -0.786, -0.836,
-0.886, -0.917, -0.977, -1.040, -1.100, -1.153,
-1.208, -1.250, -1.310, -1.349, -1.397, -1.456,
-1.491, -1.537, -1.590, -1.643, -1.700, -1.752,
-1.802, -1.854, -1.896, -1.951, -1.986, -2.021,
-2.069, -2.103, -2.153, -2.197, -2.226, -2.271,
-2.302, -2.325, -2.370, -2.401, -2.430, -2.474,
-2.511, -2.532, -2.574, -2.608, -2.650, -2.691,
-2.720, -2.749, -2.790, -2.814, -2.846, -2.874,
-2.897, -2.919, -2.950, -2.989, -3.010, -3.055,
-3.083, -3.117, -3.135, -3.162, -3.196, -3.216,
-3.242, -3.268, -3.297, -3.320, -3.349, -3.383,
-3.414, -3.443, -3.461, -3.492, -3.516, -3.544,
-3.563, -3.591, -3.607, -3.631, -3.659, -3.661,
-3.695, -3.725, -3.737, -3.763, -3.779, -3.797,
-3.808, -3.815, -3.849, -3.870, -3.878, -3.891,
-3.902, -3.930, -3.938, -3.946, -3.959, -3.958,
-3.969, -3.875, -3.864, -3.874, -3.885, -3.893,
-3.895, -3.898, -3.903, -3.905, -3.908, -3.910,
-3.910, -3.122, -2.873, -2.870, -2.846, -2.827,
-2.835, -2.780, -2.751, -2.738, -2.725, -2.722,
-2.709, -2.140, -1.571, -1.535, -1.532, -1.511,
-1.506, -1.495, -1.482, -1.477, -1.471, -1.460,
-0.912, 0.329, 0.660, 0.817, 0.861, 0.901,
0.927, 0.991, 1.007, 1.030, 1.154, 1.195,
1.413, 2.186, 2.713, 2.910, 3.193, 3.299,
3.348, 3.388, 3.423, 3.438, 3.447, 3.452,
3.466, 3.466, 3.472, 3.475, 3.481, 3.481,
3.478, 3.479, 3.482, 3.485, 3.482, 3.482,
3.483, 3.485, 3.494, 3.499, 3.516, 3.518,
3.516, 3.521, 3.524, 3.524, 3.524, 3.525,
3.527, 3.528, 3.528, 3.528, 3.531, 3.534,
3.531, 3.532, 3.532, 3.532, 3.532, 3.532,
3.533, 3.546, 3.549, 3.551, 3.551, 3.552,
3.552, 3.552, 3.566, 3.550, 3.545, 3.545,
3.545, 3.543, 3.559, 3.549, 3.541, 3.538,
3.531, 3.531, 3.529, 3.531, 3.526, 3.524,
3.522, 3.446, 3.388, 3.359, 3.317, 3.156,
2.995, 2.877, 2.814, 2.769, 2.712, 2.694,
2.644, 2.602, 2.576, 2.543, 2.485, 2.371,
2.251, 2.180, 2.083, 2.018, 1.948, 1.872,
1.810, 1.766, 1.704, 1.644, 1.560, 1.490,
1.404, 1.358, 1.282, 1.233, 1.175, 1.116,
1.048, 1.020, 0.958, 0.892, 0.845, 0.770,
0.700, 0.648, 0.578, 0.531, 0.465, 0.408,
0.356, 0.312, 0.249, 0.199, 0.132, 0.072,
0.007, -0.030, -0.100, -0.155, -0.202, -0.264,
-0.304, -0.348, -0.408, -0.455, -0.520, -0.570,
-0.625, -0.667, -0.727, -0.771, -0.813, -0.857,
-0.906, -0.943, -0.988, -1.050, -1.116, -1.152,
-1.204, -1.251, -1.301, -1.346, -1.406, -1.450,
-1.493, -1.547, -1.592, -1.647, -1.694, -1.756,
-1.806, -1.853, -1.900, -1.939, -1.984, -2.023,
-2.062, -2.091, -2.136, -2.185, -2.225, -2.258,
-2.301, -2.318, -2.360, -2.397, -2.426, -2.457,
-2.499, -2.514, -2.548, -2.593, -2.640, -2.663,
-2.697, -2.721, -2.765, -2.781, -2.817, -2.843,
-2.869, -2.898, -2.929, -2.950, -2.987, -3.021,
-3.058, -3.081, -3.115, -3.136, -3.170, -3.198,
-3.214, -3.232, -3.276, -3.292, -3.321, -3.355,
-3.386, -3.407, -3.444, -3.467, -3.488, -3.512,
-3.538, -3.548, -3.584, -3.602, -3.619, -3.642,
-3.665, -3.689, -3.701, -3.703, -3.716, -3.742,
-3.765, -3.781, -3.791, -3.805, -3.833, -3.846,
-3.857, -3.872, -3.880, -3.893, -3.903, -3.909,
-3.927, -3.833, -3.775, -3.770, -3.778, -3.788,
-3.798, -3.801, -3.801, -3.806, -3.806, -3.811,
-3.813, -3.079, -2.831, -2.793, -2.782, -2.739,
-2.736, -2.712, -2.691, -2.686, -2.681, -2.670,
-2.664, -2.154, -1.532, -1.493, -1.493, -1.477,
-1.469, -1.463, -1.452, -1.449, -1.444, -1.436,
-0.888, 0.259, 0.650, 0.820, 0.907, 0.951,
0.973, 0.991, 0.996, 1.012, 1.141, 1.175,
1.400, 2.204, 2.725, 2.937, 3.267, 3.311,
3.369, 3.396, 3.446, 3.457, 3.457, 3.467,
3.470, 3.476, 3.478, 3.478, 3.481, 3.484,
3.484, 3.484, 3.487, 3.488, 3.490, 3.493,
3.493, 3.499, 3.499, 3.502, 3.502, 3.502,
3.542, 3.545, 3.548, 3.551, 3.551, 3.551,
3.551, 3.551, 3.552, 3.552, 3.552, 3.552,
3.555, 3.552, 3.553, 3.553, 3.553, 3.553,
3.553, 3.575, 3.578, 3.578, 3.578, 3.578,
3.583, 3.583, 3.578, 3.584, 3.578, 3.579,
3.582, 3.585, 3.590, 3.582, 3.573, 3.573,
3.567, 3.568, 3.571, 3.571, 3.571, 3.553,
3.553, 3.461, 3.440, 3.411, 3.366, 3.171,
2.956, 2.852, 2.796, 2.773, 2.733, 2.713,
2.665, 2.629, 2.610, 2.572, 2.508, 2.368,
2.270, 2.192, 2.103, 2.046, 1.966, 1.906,
1.851, 1.812, 1.761, 1.696, 1.631, 1.550,
1.475, 1.421, 1.355, 1.312, 1.252, 1.200,
1.140, 1.098, 1.044, 0.994, 0.932, 0.865,
0.797, 0.742, 0.685, 0.628, 0.567, 0.516,
0.456, 0.403, 0.346, 0.284, 0.226, 0.167,
0.099, 0.052, -0.014, -0.082, -0.152, -0.208,
-0.252, -0.307, -0.359, -0.425, -0.490, -0.532,
-0.592, -0.639, -0.695, -0.747, -0.789, -0.839,
-0.885, -0.930, -0.988, -1.045, -1.106, -1.161,
-1.213, -1.252, -1.321, -1.354, -1.404, -1.449,
-1.498, -1.542, -1.603, -1.648, -1.705, -1.763,
-1.809, -1.875, -1.914, -1.966, -2.005, -2.047,
-2.084, -2.118, -2.170, -2.204, -2.243, -2.285,
-2.322, -2.358, -2.382, -2.429, -2.455, -2.483,
-2.528, -2.552, -2.596, -2.630, -2.680, -2.716,
-2.747, -2.774, -2.808, -2.831, -2.863, -2.888,
-2.917, -2.957, -2.975, -3.014, -3.048, -3.069,
-3.121, -3.136, -3.165, -3.199, -3.217, -3.237,
-3.256, -3.280, -3.317, -3.341, -3.368, -3.395,
-3.419, -3.441, -3.465, -3.499, -3.524, -3.545,
-3.572, -3.585, -3.609, -3.647, -3.668, -3.687,
-3.698, -3.725, -3.752, -3.765, -3.781, -3.791,
-3.815, -3.826, -3.845, -3.869, -3.880, -3.893,
-3.903, -3.910, -3.932, -3.946, -3.951, -3.956,
-3.962, -3.875, -3.867, -3.872, -3.880, -3.882,
-3.893, -3.898, -3.909, -3.914, -3.914, -3.916,
-3.913, -3.035, -2.858, -2.841, -2.825, -2.822,
-2.827, -2.811, -2.792, -2.759, -2.754, -2.746,
-2.735, -2.189, -1.580, -1.539, -1.533, -1.525,
-1.522, -1.511, -1.511, -1.508, -1.497, -1.488,
-0.931, 0.287, 0.620, 0.741, 0.793, 0.871,
0.926, 0.947, 0.961, 0.990, 1.101, 1.128,
1.344, 2.130, 2.619, 2.899, 3.219, 3.267,
3.327, 3.352, 3.395, 3.409, 3.417, 3.423,
3.426, 3.429, 3.443, 3.449, 3.452, 3.455,
3.453, 3.456, 3.459, 3.464, 3.464, 3.465,
3.465, 3.465, 3.471, 3.466, 3.469, 3.469,
3.469, 3.469, 3.475, 3.478, 3.478, 3.481,
3.482, 3.482, 3.485, 3.485, 3.491, 3.488,
3.489, 3.489, 3.489, 3.489, 3.490, 3.490,
3.493, 3.511, 3.512, 3.515, 3.515, 3.515,
3.515, 3.516, 3.519, 3.519, 3.511, 3.511,
3.512, 3.517, 3.526, 3.521, 3.518, 3.510,
3.502, 3.505, 3.503, 3.503, 3.500, 3.501,
3.493, 3.428, 3.373, 3.348, 3.324, 3.218,
3.091, 2.976, 2.941, 2.897, 2.870, 2.841,
2.809, 2.790, 2.771, 2.766, 2.725, 2.631,
2.559, 2.492, 2.449, 2.411, 2.371, 2.328,
2.294, 2.270, 2.227, 2.184, 2.115, 2.053,
1.966, 1.940, 1.869, 1.829, 1.770, 1.719,
1.682, 1.625, 1.564, 1.481, 1.419, 1.325,
1.247, 1.183, 1.113, 1.038, 0.970, 0.908,
0.846, 0.787, 0.723, 0.642, 0.572, 0.499,
0.432, 0.380, 0.302, 0.227, 0.157, 0.103,
0.035, -0.013, -0.096, -0.170, -0.227, -0.293,
-0.360, -0.417, -0.477, -0.525, -0.593, -0.636,
-0.690, -0.741, -0.806, -0.885, -0.944, -1.003,
-1.110, -1.103, -1.165, -1.217, -1.265, -1.322,
-1.378, -1.424, -1.483, -1.548, -1.605, -1.656,
-1.699, -1.755, -1.804, -1.861, -1.904, -1.947,
-2.012, -2.039, -2.088, -2.146, -2.179, -2.228,
-2.254, -2.306, -2.338, -2.383, -2.405, -2.437,
-2.480, -2.505, -2.550, -2.596, -2.639, -2.671,
-2.714, -2.748, -2.773, -2.813, -2.840, -2.862,
-2.888, -2.913, -2.950, -2.985, -3.014, -3.047,
-3.071, -3.101, -3.127, -3.157, -3.173, -3.199,
-3.226, -3.245, -3.267, -3.293, -3.317, -3.336,
-3.363, -3.373, -3.397, -3.416, -3.438, -3.467,
-3.475, -3.488, -3.512, -3.541, -3.555, -3.566,
-3.582, -3.598, -3.619, -3.629, -3.645, -3.653,
-3.674, -3.682, -3.701, -3.712, -3.720, -3.725,
-3.744, -3.757, -3.778, -3.786, -3.788, -3.799,
-3.804, -3.704, -3.704, -3.712, -3.717, -3.717,
-3.719, -3.725, -3.724, -3.735, -3.737, -3.734,
-3.737, -3.010, -2.744, -2.715, -2.707, -2.696,
-2.698, -2.663, -2.631, -2.614, -2.614, -2.614,
-2.605, -2.081, -1.551, -1.497, -1.494, -1.491,
-1.477, -1.458, -1.442, -1.436, -1.433, -1.422,
-1.044, 0.151, 0.497, 0.642, 0.749, 0.816,
0.838, 0.847, 0.855, 0.881, 1.009, 1.044,
1.210, 1.910, 2.436, 2.638, 2.939, 2.991,
3.031, 3.064, 3.108, 3.116, 3.119, 3.096,
3.098, 3.115, 3.118, 3.124, 3.124, 3.124,
3.127, 3.128, 3.131, 3.150, 3.150, 3.150,
3.171, 3.177, 3.188, 3.186, 3.200, 3.201,
3.198, 3.204, 3.204, 3.213, 3.216, 3.235,
3.218, 3.246, 3.246, 3.259, 3.259, 3.259,
3.259, 3.262, 3.263, 3.263, 3.263, 3.263,
3.279, 3.294, 3.300, 3.300, 3.303, 3.305,
3.303, 3.303, 3.303, 3.307, 3.298, 3.292,
3.293, 3.287, 3.304, 3.304, 3.299, 3.285,
3.282, 3.285, 3.285, 3.252, 3.255, 3.252,
3.250, 3.180, 3.133, 3.113, 3.090, 2.943,
2.782, 2.698, 2.651, 2.627, 2.593, 2.563,
2.531, 2.528, 2.513, 2.499, 2.470, 2.413,
2.370, 2.335, 2.292, 2.260, 2.229, 2.188,
2.168, 2.148, 2.119, 2.123, 2.087, 2.054,
2.006, 1.979, 1.939, 1.907, 1.870, 1.842,
1.810, 1.782, 1.729, 1.680, 1.623, 1.547,
1.469, 1.413, 1.340, 1.257, 1.202, 1.146,
1.088, 1.018, 0.940, 0.885, 0.810, 0.737,
0.665, 0.607, 0.520, 0.451, 0.381, 0.314,
0.259, 0.203, 0.119, 0.054, 0.002, -0.068,
-0.130, -0.180, -0.256, -0.323, -0.373, -0.423,
-0.476, -0.529, -0.596, -0.657, -0.733, -0.775,
-0.828, -0.886, -0.951, -0.995, -1.057, -1.102,
-1.144, -1.194, -1.247, -1.300, -1.353, -1.398,
-1.451, -1.502, -1.560, -1.591, -1.644, -1.681,
-1.716, -1.758, -1.797, -1.836, -1.870, -1.901,
-1.937, -1.965, -2.012, -2.049, -2.084, -2.122,
-2.146, -2.182, -2.227, -2.263, -2.293, -2.335,
-2.366, -2.399, -2.430, -2.463, -2.488, -2.516,
-2.541, -2.569, -2.605, -2.619, -2.650, -2.694,
-2.711, -2.741, -2.775, -2.806, -2.825, -2.847,
-2.867, -2.892, -2.917, -2.940, -2.950, -2.967,
-2.998, -3.020, -3.034, -3.044, -3.064, -3.078,
-3.100, -3.111, -3.128, -3.147, -3.173, -3.184,
-3.200, -3.209, -3.229, -3.237, -3.251, -3.273,
-3.284, -3.290, -3.312, -3.322, -3.328, -3.336,
-3.342, -3.355, -3.363, -3.372, -3.380, -3.392,
-3.400, -3.307, -3.307, -3.316, -3.318, -3.321,
-3.326, -3.329, -3.328, -3.328, -3.337, -3.342,
-3.342, -2.592, -2.376, -2.315, -2.304, -2.304,
-2.297, -2.244, -2.233, -2.230, -2.219, -2.213,
-2.204, -1.652, -1.095, -1.061, -1.064, -1.052,
-1.046, -1.032, -1.029, -1.026, -1.023, -1.009,
-0.541, 0.577, 0.979, 1.074, 1.121, 1.167,
1.170, 1.190, 1.198, 1.223, 1.335, 1.349,
1.531, 2.270, 2.802, 2.989, 3.286, 3.332,
3.376, 3.413, 3.441, 3.461, 3.476, 3.487
]

plt.close('all')
fig = plt.figure(figsize=(421/72., 321/72.))
ax = fig.gca()
plt.xlim(0, 7)
plt.ylim(-4.2, 4.2)
plt.title('Diesel')
plt.xlabel('Wochentag')
plt.ylabel('relative Preisabweichung')
plt.grid(True, linestyle='-', linewidth=0.4)
plt.grid(True, which='minor')

ax.yaxis.set_major_formatter(mpl.ticker.FormatStrFormatter('%+d %%'))
plt.gca().set_xticks(np.arange(7))
minorxticks = filter(lambda x: x!=int(x), np.arange(0, 7, 1/4.))
ax.set_xticks(minorxticks, minor=True)
ax.set_xticklabels([])
wd = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So']
ax.set_xticklabels([wd[int(i)] if i-0.5 == int(i) else '' for i in minorxticks], minor=True)

fig.canvas.draw()
for l in ax.yaxis.get_gridlines():
    if l.get_ydata()[0] == 0.0:
        l.set_linewidth(1)

plt.plot(np.arange(0, 7, 1.0/(24*12)), diesel_pricedev_perc_week_5m, '-', lw=2.4)

plt.tight_layout()
plt.savefig(fname + '.svg')
f = open(fname + '.svg', 'r')
txt = string.replace(f.read(), 'pt', 'px', 2)
f.close()
f = open(fname + '.svg', 'w')
f.write(txt)
f.close()

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:License migration redundant#Dieselprice%20weekly%20germany2014.svgCategory:GFDL#Dieselprice%20weekly%20germany2014.svg
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0,2.5,2.0,1.0#Dieselprice%20weekly%20germany2014.svg
You may select the license of your choice.
Category:Self-published work
Category:Gasoline prices Category:Photos by User:Geek3
Category:CC-BY-SA-3.0,2.5,2.0,1.0 Category:GFDL Category:Gasoline prices Category:License migration redundant Category:Photos by User:Geek3 Category:Self-published work Category:Valid SVG created with Matplotlib code