Giter Club home page Giter Club logo

cern-plots's Introduction

What's this?

This is a piece of code that uses Python and CERN's PyROOT library to plot data on a graph. It was written during my IT stage at CERN. The produced graphs are like these:

plot1.py plot2.py
plot1 plot2

In particular:

  • plot1.py plots the number of requests received each day
  • plot2.py plots the type of requests received by timestamp
  • plot3.py plots the type of requests received by experiment

How to use:

First method (best):

  1. Install Python 2.7 on your machine
  2. Install ROOT library from CERN's official website
  3. Clone this repo and cd into the src folder
    git clone https://github.com/P2-718na/CERN-plots.git
    cd CERN-plots/src
    
  4. Get some data. I couldn't upload the whole dataset i used to make the graphs (400MB), but you can use sample.json and sample-parsed.json in the samples folder to get an idea.
  5. Open a Python console and run the program
    python
    execfile("plot[1|2|3].py")
    
  6. If you want to make changes to the graph, re-run execfile("plot[1|2|3].py")
    without closing the Python console (it will be faster, since you won't have to re-read the whole dataset)

Second method (fastest):

  • If you are a CERN employee, you can download the plot1.ipynb notebook, upload it to CERNbox and run it using SWAN
  • If you are not a CERN employee, you can still view the notebook using Jupyter notebook viewer

cern-plots's People

Contributors

p2-718na avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.