-
Notifications
You must be signed in to change notification settings - Fork 549
Add Window method to change axes label format #2006
Copy link
Copy link
Closed
Labels
Description
Originally reported in upstream graphics library, Forge. arrayfire/forge#152
Code used to reproduce the issue.
#include <arrayfire.h>
int main(int argc, char *argv[])
{
try {
af::info();
af::array X = af::seq(0., 0.4, 0.1);
af::array Y = af::seq(0., 0.9, 0.1);
af::array Z = af::constant(1., 5, 10);
af::Window window(1500, 800, "The door.");
do {
window.surface(X, Y, Z, "The weird surface");
} while(!window.close());
} catch (af::exception& e) {
fprintf(stderr, "%s\n", e.what());
throw;
}
return 0;
}
Current work around to for the issue is to explicitly set the limits as follows.
window.setAxesLimits(0.0f, 0.4f, 0.0f, 0.9f, -1.0f, 1.0f, true);
Reactions are currently unavailable