Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mypltemplate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Yori Fournier
  • mypltemplate
  • Wiki
  • create your first axes

create your first axes · Changes

Page history
yfournier created page: create your first axes authored Feb 15, 2017 by Yori Fournier's avatar Yori Fournier
Hide whitespace changes
Inline Side-by-side
create-your-first-axes.md 0 → 100644
View page @ 16c589f5
# Create your first Axes
Create `mymodule/myAxes/<name of my class>.py`
> Here we will use mymodule/myAxes/axMyFirstAxes.py
```python
# Import the mother class MyAxes from the local myplotlib module
from ..myplotlib import MyAxes
# Begin of the class
class axMyFirstAxes(MyAxes):
# This is the function that will format the rawdata so that they can be plotted
def formatRawdata(self, rawdata):
rawdata1 = rawdata.data[<some key>]
rawdata2 = rawdata.data[<some key>]
# Extract some part of the data and format them
if(self.fig.keywords[<some key>]):
# format in a certain way
else:
# format in another way
xdata = <some formular>
ydata = <some formular>
self.data = {'xdata': xdata,
'ydata': ydata}
```
\ No newline at end of file
Clone repository
  • create your first axes
  • create your first figure
  • get started
  • Home