Root example failure

Help
2009-09-17
2013-01-05
  • Ian Preston
    Ian Preston
    2009-09-17

    I download Jhepplot and tried to run the following script
    *****************************************
    from jhplot import JaPlot

    c1 = JaPlot("Canvas", 800, 600, 2, 1)

    c1.visible()

    c1.showBrowser("pgsOutputFile.root")

    c1.showEditor(1)
    ******************************************
    essentially from the examples, and got the following errors:
    ********************
    Traceback (most recent call last): ,  
    File /analysis/jhepwork/root.py, line 1, in <module> ,    
    from jhplot import JaPlot , ImportError: cannot import name JaPlot ,

     
  • Hello,

    Starting from v2.1, JaPlot was renamed to HPlotJa (to make
    all canvas names to be consistent).

    best wishes, Sergei

     
  • Ian Preston
    Ian Preston
    2009-09-24

    Hi Sergei,

    I changed the first line to:
    from jhplot import HPlotJa

    but it still fails with:
    line 1, in <module> ,     from jhplot import HPlotJa , ImportError: cannot import name HPlotJa

    Am I doing something silly?
    Thank you very much,
    Ian