You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: