Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
24ca41ff
Commit
24ca41ff
authored
Jun 13, 2014
by
panos
Committed by
Jérome Perrin
Jun 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New example added to illustrate the use of the Plots object
parent
7cd15c8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
dream/KnowledgeExtraction/KEtool_examples/Plots/DataSet.csv
dream/KnowledgeExtraction/KEtool_examples/Plots/DataSet.csv
+10
-0
dream/KnowledgeExtraction/KEtool_examples/Plots/Plots_example.py
...nowledgeExtraction/KEtool_examples/Plots/Plots_example.py
+45
-0
No files found.
dream/KnowledgeExtraction/KEtool_examples/Plots/DataSet.csv
0 → 100644
View file @
24ca41ff
M1,M2
0.605703539,0.964730988
0.316191544,0.026733702
0.705934251,0.143290362
0.443313263,0.457859747
0.760824832,0.360404368
0.053600175,0.724183619
0.781035648,0.705351425
0.626433697,0.616910323
0.183075027,0.766356281
dream/KnowledgeExtraction/KEtool_examples/Plots/Plots_example.py
0 → 100644
View file @
24ca41ff
'''
Created on 13 Jun 2014
@author: Panos
'''
#===========================================================================
# Copyright 2013 University of Limerick
#
# This file is part of DREAM.
#
# DREAM is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DREAM is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with DREAM. If not, see <http://www.gnu.org/licenses/>.
# ===========================================================================
from
ImportCSVdata
import
Import_CSV
from
Plots
import
Graphs
filename
=
(
"DataSet.csv"
)
A
=
Import_CSV
()
#call the Import_CSV module and using its method Input_data import the data set from the CSV file to the tool
Data
=
A
.
Input_data
(
filename
)
M1
=
Data
.
get
(
'M1'
,[])
#get from the returned Python dictionary the two data sets:
M2
=
Data
.
get
(
'M2'
,[])
graph
=
Graphs
()
#create a graph object
#create the following charts
graph
.
Plots
(
M1
,
'M1SimplePlot.jpg'
)
graph
.
ScatterPlot
(
M1
,
M2
,
'Scatterplot.jpg'
)
graph
.
Barplot
(
M2
,
'M2Barplot.jpg'
)
graph
.
Histogram
(
M1
,
'M1Histogram.jpg'
)
graph
.
TwoSetPlot
(
M1
,
M2
,
'M1M2Plot.jpg'
)
graph
.
Pie
(
M2
,
'M2PieChar.jpg'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment