lida icon indicating copy to clipboard operation
lida copied to clipboard

Truncated X-Labels on plot

Open Omotade-MY opened this issue 1 year ago • 3 comments

LIDA truncated the labels on the x-axis of plots.

The plots generated by LIDA was truncated and the X-axis labels did not display completely.

Here is the code to reproduce it:

import pandas as pd
import numpy as np
data_path = 
[Uploading sample_financial_data.csv…]()

api_key = os.environ['OPENAI_API_KEY']

lida = Manager(text_gen = llm(provider="openai", api_key=api_key)) 
textgen_config = TextGenerationConfig(n=1, temperature=0.5,
                                        model="gpt-3.5-turbo-0125", use_cache=False)


summary = lida.summarize(data_path, summary_method="default", textgen_config=textgen_config)  

persona = "Give a Barchart of industry against revenue"

goals = lida.goals(summary, n=1, persona=persona, textgen_config=textgen_config)
    

library = "matplotlib"
plots = lida.visualize(summary=summary, goal=goals[0], textgen_config=textgen_config, library=library)



plots[0]`````

Omotade-MY avatar Feb 04 '24 06:02 Omotade-MY

output

Omotade-MY avatar Feb 27 '24 13:02 Omotade-MY

Same issue !

PyroShade avatar Mar 14 '24 11:03 PyroShade

Facing the same issue, is there any fix ?

vishalsingh-11 avatar Apr 11 '24 17:04 vishalsingh-11