ttricco / sarracen

A Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.
https://sarracen.readthedocs.io
GNU General Public License v3.0
15 stars 18 forks source link

Plotting error for binary star file #75

Open zachboots opened 7 months ago

zachboots commented 7 months ago

Reading in a dump file of a single white dwarf star plots as expected. However, a dump file that was a combination of two white dwarf stars causes an error. The file reads in fine, the data table of the dump file looks correct, it just has an issue with plotting.

error binary

Any help would be appreciated. Thanks

ttricco commented 6 months ago

I've been working on this. The problem is that the ratio of x to y limits is ~10,000 to 1 for your problem (two stars on a very wide orbit). This causes the number of y pixels to round to 0. Manually setting y_pixels= is a workaround for now.