{"version":"1.0","type":"rich","title":"Create beautiful square figures with big labels and the correct number of ticks","description":"This example demonstrates how to create square matplotlib figures with large axis labels and precisely controlled tick counts. The `create_figure` function builds a figure with a fixed square size and uses `MaxNLocator` to set the number of x-axis ticks, while `format_axes` applies custom numeric formatting via `FormatStrFormatter` and independently controls tick counts and label sizes for both axes. The code relies on matplotlib’s `figure`, `add_subplot`, and `tick_params` APIs to produce clean, publication-ready plots.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-066e38af300213a57baea71f78ec52ab?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}