Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated X-Labels on plot #92

Open
Omotade-MY opened this issue Feb 4, 2024 · 3 comments
Open

Truncated X-Labels on plot #92

Omotade-MY opened this issue Feb 4, 2024 · 3 comments

Comments

@Omotade-MY
Copy link

Omotade-MY commented Feb 4, 2024

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
Copy link
Author

output

@PyroShade
Copy link

Same issue !

@vishalsingh-11
Copy link

Facing the same issue, is there any fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants