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

Unable to Resize chart while using Seaborn as the library #136

Open
FarzadAvari opened this issue Sep 10, 2024 · 0 comments
Open

Unable to Resize chart while using Seaborn as the library #136

FarzadAvari opened this issue Sep 10, 2024 · 0 comments

Comments

@FarzadAvari
Copy link

FarzadAvari commented Sep 10, 2024

Hello,

I am using LIDA along with Azure Open AI subscription and Seaborn/Matplotlib libraries. I am getting the useful charts but unable to resize them as a few labels for X and Y axis are getting chopped off from the bottom and sides. It would be of great help if anyone can help me out on this. Tried using the line 'plt.figure(figsize=(20,30))' but yet no success

Below is the code used:

`from lida import Manager, llm,TextGenerationConfig
import openai

text_gen = llm(provider="openai", api_type="azure", azure_endpoint=os.environ["AZURE_OPENAI_BASE"],
api_key=os.environ["AZURE_OPENAI_API_KEY"],api_version="2024-02-01")
lida = Manager(text_gen=text_gen)
textgen_config = TextGenerationConfig(n=1, temperature=0, model=deployment, use_cache=True)
summary = lida.summarize(df, summary_method="default", textgen_config=textgen_config)
goals = lida.goals(summary, n=3, textgen_config=textgen_config)

i = 0
library = "seaborn"
textgen_config = TextGenerationConfig(n=1, temperature=0.2, use_cache=True)
charts = lida.visualize(summary=summary, goal=goals[i], textgen_config=textgen_config, library=library)
charts[0]
`

Thank you.

@FarzadAvari FarzadAvari changed the title Uable to Resize chart while using Seaborn as the library Unable to Resize chart while using Seaborn as the library Sep 10, 2024
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

1 participant