File tree Expand file tree Collapse file tree 15 files changed +27
-27
lines changed Expand file tree Collapse file tree 15 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 99from  matplotlib .text  import  Text 
1010from  pydantic  import  Field 
1111
12- from  e2b_data_extraction .graphs  import  (
12+ from  .graphs  import  (
1313    GraphType ,
1414    Graph ,
1515    LineGraph ,
1818    PieGraph ,
1919    ScatterGraph ,
2020)
21- from  e2b_data_extraction .utils .filtering  import  is_grid_line 
21+ from  .utils .filtering  import  is_grid_line 
2222
2323
2424class  SuperGraph (Graph ):
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def dynamic_round(number):
66    decimal_number  =  Decimal (str (number ))
77
88    # Dynamically determine precision based on magnitude 
9-     precision  =  max (1 , 16  -  decimal_number .adjusted ())  # 16  digits of precision 
9+     precision  =  max (1 , 8  -  decimal_number .adjusted ())  # 8  digits of precision 
1010
1111    with  localcontext () as  ctx :
1212        ctx .prec  =  precision   # Set the dynamic precision 
Original file line number Diff line number Diff line change 11[tool .poetry ]
2- name  = " e2b-code-interpreter-data-extraction " 
2+ name  = " e2b-charts " 
33version  = " 0.0.0" 
44description  = " Package for extracting data for E2B Code Interpreter" 
55authors  = [
" e2b <[email protected] >" ]
Original file line number Diff line number Diff line change 11import  matplotlib .pyplot  as  plt 
22
3- from  e2b_data_extraction  import  graph_figure_to_graph 
4- from  e2b_data_extraction .graphs  import  BarGraph , GraphType 
3+ from  e2b_charts  import  graph_figure_to_graph 
4+ from  e2b_charts .graphs  import  BarGraph , GraphType 
55
66
77def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 11import  matplotlib .pyplot  as  plt 
22
3- from  e2b_data_extraction  import  graph_figure_to_graph 
4- from  e2b_data_extraction .graphs  import  BoxAndWhiskerGraph , GraphType 
3+ from  e2b_charts  import  graph_figure_to_graph 
4+ from  e2b_charts .graphs  import  BoxAndWhiskerGraph , GraphType 
55
66
77def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 22import  matplotlib .pyplot  as  plt 
33import  datetime 
44
5- from  e2b_data_extraction  import  graph_figure_to_graph 
6- from  e2b_data_extraction .graphs  import  LineGraph 
5+ from  e2b_charts  import  graph_figure_to_graph 
6+ from  e2b_charts .graphs  import  LineGraph 
77
88
99def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 22import  matplotlib .pyplot  as  plt 
33import  datetime 
44
5- from  e2b_data_extraction  import  graph_figure_to_graph 
6- from  e2b_data_extraction .graphs  import  LineGraph 
5+ from  e2b_charts  import  graph_figure_to_graph 
6+ from  e2b_charts .graphs  import  LineGraph 
77
88
99def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 22import  matplotlib .pyplot  as  plt 
33import  datetime 
44
5- from  e2b_data_extraction  import  graph_figure_to_graph 
6- from  e2b_data_extraction .graphs  import  LineGraph 
5+ from  e2b_charts  import  graph_figure_to_graph 
6+ from  e2b_charts .graphs  import  LineGraph 
77
88
99def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 11import  numpy  as  np 
22import  matplotlib .pyplot  as  plt 
33
4- from  e2b_data_extraction  import  graph_figure_to_graph 
5- from  e2b_data_extraction .graphs  import  LineGraph 
4+ from  e2b_charts  import  graph_figure_to_graph 
5+ from  e2b_charts .graphs  import  LineGraph 
66
77
88def  _prep_graph_figure ():
Original file line number Diff line number Diff line change 11import  matplotlib .pyplot  as  plt 
22
3- from  e2b_data_extraction  import  graph_figure_to_graph 
4- from  e2b_data_extraction .graphs  import  PieGraph 
3+ from  e2b_charts  import  graph_figure_to_graph 
4+ from  e2b_charts .graphs  import  PieGraph 
55
66
77def  _prep_graph_figure ():
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments