1
# Copyright (c) 2020 by Fraunhofer Institute for Energy Economics
2
# and Energy System Technology (IEE), Kassel. All rights reserved.
3
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4

5 1
from pandapipes.plotting.collections import *
6 1
from pandapipes.plotting.generic_geodata import *
7 1
from pandapipes.plotting.simple_plot import *
8 1
from pandapipes.plotting.geo import *
9 1
from pandapower.plotting.collections import add_collections_to_axes, add_cmap_to_collection, \
10
    add_single_collection
11

12 1
import types
13 1
from matplotlib.backend_bases import GraphicsContextBase, RendererBase
14

15

16 1
class GC(GraphicsContextBase):
17
    """
18

19
    """
20

21 1
    def __init__(self):
22 0
        super().__init__()
23 0
        self._capstyle = 'round'
24

25

26 1
def custom_new_gc(self):
27
    """
28

29
    :param self:
30
    :type self:
31
    :return:
32
    :rtype:
33
    """
34 0
    return GC()
35

36

37 1
RendererBase.new_gc = types.MethodType(custom_new_gc, RendererBase)

Read our documentation on viewing source code .

Loading