Team Ai
Apppublic

abdullatifkaban/matplotlib-visualizer

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
plots.json179 linesDownload Raw Back to src
1{2  "📊 Temel & Dagilim": {3    "scatter": {4      "label": "Scatter Plot",5      "when_to_use": "İki sayısal değişken arasındaki ilişkiyi ve dağılımı incelemek için kullanılır.",6      "inputs": ["x", "y"],7      "options": {8        "color": "tab:blue",9        "size": 40,10        "alpha": 0.711      },12      "code_template": "ax.scatter({x}, {y}, c={color}, s={size}, alpha={alpha})"13    },14 15    "line": {16      "label": "Line Plot",17      "when_to_use": "Zamana veya sıralı bir değişkene bağlı değişimi göstermek için uygundur.",18      "inputs": ["x", "y"],19      "options": {20        "color": "tab:red",21        "linewidth": 222      },23      "code_template": "ax.plot({x}, {y}, color={color}, linewidth={linewidth})"24    },25 26    "bar": {27      "label": "Bar Plot",28      "when_to_use": "Kategorilere göre sayısal değerleri karşılaştırmak için kullanılır.",29      "inputs": ["x", "y"],30      "options": {31        "color": "tab:green"32      },33      "code_template": "ax.bar({x}, {y}, color={color})"34    },35 36    "barh": {37      "label": "Horizontal Bar Plot",38      "when_to_use": "Uzun kategori isimlerinde yatay karşılaştırma için tercih edilir.",39      "inputs": ["x", "y"],40      "options": {41        "color": "tab:purple"42      },43      "code_template": "ax.barh({x}, {y}, color={color})"44    },45 46    "hist": {47      "label": "Histogram",48      "when_to_use": "Tek bir sayısal değişkenin dağılımını incelemek için kullanılır.",49      "inputs": ["x"],50      "options": {51        "bins": 20,52        "color": "tab:blue",53        "alpha": 0.754      },55      "code_template": "ax.hist({x}, bins={bins}, color={color}, alpha={alpha})"56    },57 58    "box": {59      "label": "Boxplot",60      "when_to_use": "Dağılım, medyan ve aykırı değerleri görmek için kullanılır.",61      "inputs": ["y"],62      "options": {},63      "code_template": "ax.boxplot({y})"64    },65 66    "violin": {67      "label": "Violin Plot",68      "when_to_use": "Dağılımın yoğunluk yapısını detaylı görmek için kullanılır.",69      "inputs": ["y"],70      "options": {},71      "code_template": "ax.violinplot({y})"72    },73 74    "hexbin": {75      "label": "Hexbin Plot",76      "when_to_use": "Yoğun veri noktalarında scatter yerine tercih edilir.",77      "inputs": ["x", "y"],78      "options": {79        "gridsize": 30,80        "cmap": "Blues"81      },82      "code_template": "ax.hexbin({x}, {y}, gridsize={gridsize}, cmap={cmap})"83    }84  },85 86  "📈 Iliski & Yogunluk": {87    "errorbar": {88      "label": "Error Bar",89      "when_to_use": "Ölçüm belirsizliği veya hata payı olan verilerde kullanılır.",90      "inputs": ["x", "y"],91      "options": {92        "yerr": "None"93      },94      "code_template": "ax.errorbar({x}, {y}, yerr={yerr}, fmt='o')"95    },96 97    "stem": {98      "label": "Stem Plot",99      "when_to_use": "Ayrık veri noktalarının büyüklüğünü vurgulamak için kullanılır.",100      "inputs": ["x", "y"],101      "options": {},102      "code_template": "ax.stem({x}, {y})"103    },104 105    "step": {106      "label": "Step Plot",107      "when_to_use": "Basamaklı değişimleri göstermek için uygundur.",108      "inputs": ["x", "y"],109      "options": {},110      "code_template": "ax.step({x}, {y})"111    },112 113    "fill_between": {114      "label": "Fill Between",115      "when_to_use": "İki eğri veya sıfır ile alan doldurmak için kullanılır.",116      "inputs": ["x", "y"],117      "options": {118        "alpha": 0.4119      },120      "code_template": "ax.fill_between({x}, {y}, alpha={alpha})"121    }122  },123 124  "🧭 Zaman Serisi & Istatistik": {125    "rolling_mean": {126      "label": "Rolling Mean",127      "when_to_use": "Zaman serilerinde trendi yumuşatarak görmek için kullanılır.",128      "inputs": ["y"],129      "options": {130        "window": 5131      },132      "code_template": "ax.plot({y}.rolling(window={window}).mean())"133    },134 135    "lag_plot": {136      "label": "Lag Plot",137      "when_to_use": "Zaman serilerinde otokorelasyonu görsel olarak incelemek için kullanılır.",138      "inputs": ["y"],139      "options": {140        "lag": 1141      },142      "code_template": "ax.scatter({y}.shift({lag})[ {lag}: ], {y}[ {lag}: ])"143    }144  },145 146  "🎯 Kategorik & Ozel": {147    "pie": {148      "label": "Pie Chart",149      "when_to_use": "Bir bütünün parçalara oranını göstermek için kullanılır.",150      "inputs": ["y"],151      "options": {152        "startangle": 90,153        "autopct": "%1.2f%%"154      },155      "code_template": "ss={y}.value_counts(); ax.pie(ss, labels=ss.index, autopct={autopct})"156    },157 158    "donut": {159      "label": "Donut Chart",160      "when_to_use": "Pie chart'ın daha modern ve okunabilir hâlidir.",161      "inputs": ["x", "y"],162      "options": {},163      "code_template": "wedges, _ = ax.pie({y}, labels={x}); centre = plt.Circle((0,0),0.6,fc='white'); ax.add_artist(centre)"164    }165  },166 167  "🧠 Korelasyon": {168    "correlation_heatmap": {169      "label": "Correlation Heatmap",170      "when_to_use": "Sayısal değişkenler arasındaki korelasyon ilişkilerini görmek için kullanılır.",171      "inputs": [],172      "options": {173        "cmap": "coolwarm"174      },175      "code_template": "corr = df.select_dtypes(include='number').corr(); im = ax.imshow(corr, cmap={cmap}); ax.set_xticks(range(len(corr.columns))); ax.set_yticks(range(len(corr.columns))); ax.set_xticklabels(corr.columns, rotation=90); ax.set_yticklabels(corr.columns); plt.colorbar(im, ax=ax)"176    }177  }178}179