changed prompt
Browse files- together_ai_llama_agent.py +18 -1
together_ai_llama_agent.py
CHANGED
@@ -122,7 +122,24 @@ Strict Rules:
|
|
122 |
- For time series, use appropriate date formatting and markers
|
123 |
- Do not use any visualization library other than matplotlib or seaborn
|
124 |
- Complete code with plt.tight_layout() before plt.show()
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
4. For Lists, Tables and Dictionaries, always return them as JSON
|
127 |
|
128 |
Example:
|
|
|
122 |
- For time series, use appropriate date formatting and markers
|
123 |
- Do not use any visualization library other than matplotlib or seaborn
|
124 |
- Complete code with plt.tight_layout() before plt.show()
|
125 |
+
- Example professional chart:
|
126 |
+
plt.figure(figsize=(14, 8))
|
127 |
+
ax = sns.barplot(x='category', y='value', data=df, palette='muted', ci=None)
|
128 |
+
plt.title('Detailed Analysis of Values by Category', fontsize=16, pad=20)
|
129 |
+
plt.xlabel('Category', fontsize=14)
|
130 |
+
plt.ylabel('Average Value', fontsize=14)
|
131 |
+
plt.xticks(rotation=45, ha='right', fontsize=12)
|
132 |
+
plt.yticks(fontsize=12)
|
133 |
+
ax.grid(True, linestyle='--', alpha=0.3)
|
134 |
+
for p in ax.patches:
|
135 |
+
ax.annotate(f'{{p.get_height():.1f}}',
|
136 |
+
(p.get_x() + p.get_width() / 2., p.get_height()),
|
137 |
+
ha='center', va='center',
|
138 |
+
xytext=(0, 10),
|
139 |
+
textcoords='offset points',
|
140 |
+
fontsize=12)
|
141 |
+
plt.tight_layout()
|
142 |
+
plt.show()
|
143 |
4. For Lists, Tables and Dictionaries, always return them as JSON
|
144 |
|
145 |
Example:
|