MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / example_data

Function example_data

DemoPrograms/Demo_Matplotlib_Browser.py:533–580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531 return verts
532
533 def example_data():
534 # The following data is from the Denver Aerosol Sources and Health study.
535 # See doi:10.1016/j.atmosenv.2008.12.017
536 #
537 # The data are pollution source profile estimates for five modeled
538 # pollution sources (e.g., cars, wood-burning, etc) that emit 7-9 chemical
539 # species. The radar charts are experimented with here to see if we can
540 # nicely visualize how the modeled source profiles change across four
541 # scenarios:
542 # 1) No gas-phase species present, just seven particulate counts on
543 # Sulfate
544 # Nitrate
545 # Elemental Carbon (EC)
546 # Organic Carbon fraction 1 (OC)
547 # Organic Carbon fraction 2 (OC2)
548 # Organic Carbon fraction 3 (OC3)
549 # Pyrolized Organic Carbon (OP)
550 # 2)Inclusion of gas-phase specie carbon monoxide (CO)
551 # 3)Inclusion of gas-phase specie ozone (O3).
552 # 4)Inclusion of both gas-phase species is present...
553 data = [
554 ['Sulfate', 'Nitrate', 'EC', 'OC1', 'OC2', 'OC3', 'OP', 'CO', 'O3'],
555 ('Basecase', [
556 [0.88, 0.01, 0.03, 0.03, 0.00, 0.06, 0.01, 0.00, 0.00],
557 [0.07, 0.95, 0.04, 0.05, 0.00, 0.02, 0.01, 0.00, 0.00],
558 [0.01, 0.02, 0.85, 0.19, 0.05, 0.10, 0.00, 0.00, 0.00],
559 [0.02, 0.01, 0.07, 0.01, 0.21, 0.12, 0.98, 0.00, 0.00],
560 [0.01, 0.01, 0.02, 0.71, 0.74, 0.70, 0.00, 0.00, 0.00]]),
561 ('With CO', [
562 [0.88, 0.02, 0.02, 0.02, 0.00, 0.05, 0.00, 0.05, 0.00],
563 [0.08, 0.94, 0.04, 0.02, 0.00, 0.01, 0.12, 0.04, 0.00],
564 [0.01, 0.01, 0.79, 0.10, 0.00, 0.05, 0.00, 0.31, 0.00],
565 [0.00, 0.02, 0.03, 0.38, 0.31, 0.31, 0.00, 0.59, 0.00],
566 [0.02, 0.02, 0.11, 0.47, 0.69, 0.58, 0.88, 0.00, 0.00]]),
567 ('With O3', [
568 [0.89, 0.01, 0.07, 0.00, 0.00, 0.05, 0.00, 0.00, 0.03],
569 [0.07, 0.95, 0.05, 0.04, 0.00, 0.02, 0.12, 0.00, 0.00],
570 [0.01, 0.02, 0.86, 0.27, 0.16, 0.19, 0.00, 0.00, 0.00],
571 [0.01, 0.03, 0.00, 0.32, 0.29, 0.27, 0.00, 0.00, 0.95],
572 [0.02, 0.00, 0.03, 0.37, 0.56, 0.47, 0.87, 0.00, 0.00]]),
573 ('CO & O3', [
574 [0.87, 0.01, 0.08, 0.00, 0.00, 0.04, 0.00, 0.00, 0.01],
575 [0.09, 0.95, 0.02, 0.03, 0.00, 0.01, 0.13, 0.06, 0.00],
576 [0.01, 0.02, 0.71, 0.24, 0.13, 0.16, 0.00, 0.50, 0.00],
577 [0.01, 0.03, 0.00, 0.28, 0.24, 0.23, 0.00, 0.44, 0.88],
578 [0.02, 0.00, 0.18, 0.45, 0.64, 0.55, 0.86, 0.00, 0.16]])
579 ]
580 return data
581
582 N = 9
583 theta = radar_factory(N, frame='polygon')

Callers 1

PyplotRadarChartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected