From: Daniel J S. <dan...@ie...> - 2004-08-20 07:00:08
|
mi...@ph... wrote: >>splot 'binary2' binary u 1:2:3:($2+($1+$2)/10) w pm3d >>splot sin(x) w l >> >>The first plot shows a blank 3d plot because the palette isn't set. >>However, the second plot should still work fine because it doesn't >>require the palette. >> >>being plotted in the second example. [This is an argument for not >>using global variables in such a way... >> >> > >Does this mean that the bug could be fixed by reseting the global variable >to the default value somewhere at the beginning of the "splot" command? > Sure, probably. Maybe initialize the variable before the df_open() call. It would need some verification. But that is bad coding practice; I'd say do that only as a quick fix for 4.0 errata. Otherwise let it linger for a while as a reminder to reorganize that portion of plot3d.c. I personally think that if df_no_use_specs is kept hidden to within datafile.c, it will force programmers to come up with better program flow and organization. That is usually what I find. (Wait a couple weeks on that one.) I'm not sure that initializing of the variable will remove the color box from the line-only plot. That is another issue. Dan |