Commit b56a5975 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

unswap x and y. They are now in correct positive orientation in gtkextra.


Sun Nov 04 02:37:58 2007  Jiri (George) Lebl <jirka@5z.com>

	* src/graphing.c: unswap x and y.  They are now in correct positive
	  orientation in gtkextra.

	* src/gnome-genius.c, pixmaps/gnome-graph.png: add a simple "logo"
	  to the about box

	* NEWS: update


svn path=/trunk/; revision=592
parent efa3fdc1
Sun Nov 04 02:37:58 2007 Jiri (George) Lebl <jirka@5z.com>
* src/graphing.c: unswap x and y. They are now in correct positive
orientation in gtkextra.
* src/gnome-genius.c, pixmaps/gnome-graph.png: add a simple "logo"
to the about box
* NEWS: update
Sat Nov 03 20:51:37 2007 Jiri (George) Lebl <jirka@5z.com>
* src/graphing.c: Use -10 to 10 for all default ranges. Much better
......
......@@ -7,10 +7,12 @@ Changes to 1.0.1
causing the computer to grind to a halt.
* The .desktop file now has different Categories setup so will likely appear
in "Education" or "Accessories" menu rather than "Office"
* Update the plotting widgetry from GtkExtra for prettier graphs
* Add IsMatrixPositive, IsMatrixNonnegative, version, IsZero, IsIdentity
* CHANGE: Remove IsGaussianInteger, we already have IsGaussInteger alias IsComplexInteger
* Add "Save all unsaved" menu item
* Add Ctrl->R for "Run"
* Default graphing limits are -10 to 10 for all axis (no more pi as default)
* Require at least GKT+ 2.3.5 for the GUI.
* Fix loading of files and URIs from the command line
* Errors don't print the full file URI for opened program names
......@@ -19,6 +21,8 @@ Changes to 1.0.1
* Slight optimizations
* Fix command line editting
* Fix showing full answer in the gui.
* Fix hangs in the graphing code by enforcing a minimum plot window size
* Remove unused file with nonfree license
* Update the about box
Changes to 1.0.0
......
SUBDIRS = \
32x32 48x48
imagedir = \
$(datadir)/genius/
image_DATA = \
genius-graph.png
......@@ -1020,6 +1020,8 @@ aboutcb(GtkWidget * widget, gpointer data)
* E.g. "Fulano de Tal <fulano@detal.com>"
*/
char *new_credits = N_("translator-credits");
GdkPixbuf *logo;
/* hack for old translations */
char *old_hack = "translator_credits-PLEASE_ADD_YOURSELF_HERE";
......@@ -1037,6 +1039,9 @@ aboutcb(GtkWidget * widget, gpointer data)
}
}
logo = gdk_pixbuf_new_from_file
(DATADIR "/genius/genius-graph.png", NULL);
about = gnome_about_new
(_("About Genius"),
VERSION,
......@@ -1047,7 +1052,10 @@ aboutcb(GtkWidget * widget, gpointer data)
authors,
documenters,
translators,
NULL);
logo);
if (logo != NULL)
g_object_unref (logo);
gtk_window_set_transient_for (GTK_WINDOW (about),
GTK_WINDOW (genius_window));
......
......@@ -18,9 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* WARNING: X and Y are flipped on the surface plotting !!!!
*/
#include "config.h"
#include <gnome.h>
......@@ -269,8 +266,7 @@ rotate_x_cb (GtkWidget *button, gpointer data)
{
int rot = GPOINTER_TO_INT (data);
/* x/y are flipped */
gtk_plot3d_rotate_y (GTK_PLOT3D (surface_plot), rot);
gtk_plot3d_rotate_x (GTK_PLOT3D (surface_plot), rot);
show_z_axis (TRUE);
......@@ -283,8 +279,7 @@ rotate_y_cb (GtkWidget *button, gpointer data)
{
int rot = GPOINTER_TO_INT (data);
/* x/y are flipped */
gtk_plot3d_rotate_x (GTK_PLOT3D (surface_plot), rot);
gtk_plot3d_rotate_y (GTK_PLOT3D (surface_plot), rot);
show_z_axis (TRUE);
......@@ -1153,9 +1148,8 @@ add_surface_plot (void)
bottom = gtk_plot_get_axis (GTK_PLOT (surface_plot), GTK_PLOT_AXIS_BOTTOM);
left = gtk_plot_get_axis (GTK_PLOT (surface_plot), GTK_PLOT_AXIS_LEFT);
/* X/Y are flipped! */
gtk_plot_axis_set_title (bottom, "Y");
gtk_plot_axis_set_title (left, "X");
gtk_plot_axis_set_title (bottom, "X");
gtk_plot_axis_set_title (left, "Y");
gtk_plot_axis_set_title (top, "Z");
gtk_plot_set_legends_border (GTK_PLOT (surface_plot),
......@@ -1403,11 +1397,10 @@ surface_setup_axis (void)
y = gtk_plot3d_get_axis (GTK_PLOT3D (surface_plot), GTK_PLOT_AXIS_Y);
z = gtk_plot3d_get_axis (GTK_PLOT3D (surface_plot), GTK_PLOT_AXIS_Z);
/* X/Y are flipped! */
gtk_plot3d_set_yrange (GTK_PLOT3D (surface_plot), surfacex1, surfacex2);
gtk_plot_axis_set_ticks (y, xtick, 1);
gtk_plot3d_set_xrange (GTK_PLOT3D (surface_plot), surfacey1, surfacey2);
gtk_plot_axis_set_ticks (x, ytick, 1);
gtk_plot3d_set_xrange (GTK_PLOT3D (surface_plot), surfacex1, surfacex2);
gtk_plot_axis_set_ticks (x, xtick, 1);
gtk_plot3d_set_yrange (GTK_PLOT3D (surface_plot), surfacey1, surfacey2);
gtk_plot_axis_set_ticks (y, ytick, 1);
gtk_plot3d_set_zrange (GTK_PLOT3D (surface_plot), surfacez1, surfacez2);
gtk_plot_axis_set_ticks (z, ztick, 1);
......@@ -1426,9 +1419,8 @@ surface_setup_axis (void)
static void
surface_setup_steps (void)
{
/* X/Y are flipped! */
gtk_plot_surface_set_ystep (GTK_PLOT_SURFACE (surface_data), (surfacex2-surfacex1)/30);
gtk_plot_surface_set_xstep (GTK_PLOT_SURFACE (surface_data), (surfacey2-surfacey1)/30);
gtk_plot_surface_set_xstep (GTK_PLOT_SURFACE (surface_data), (surfacex2-surfacex1)/30);
gtk_plot_surface_set_ystep (GTK_PLOT_SURFACE (surface_data), (surfacey2-surfacey1)/30);
gtk_plot_data_set_gradient (surface_data,
surfacez1,
......@@ -1798,9 +1790,8 @@ plot_func_data (GtkPlot *plot, GtkPlotData *data, double x, gboolean *error)
return y;
}
/* NOTE: X and Y are flipped! */
static double
surface_func_data (GtkPlot *plot, GtkPlotData *data, double y, double x, gboolean *error)
surface_func_data (GtkPlot *plot, GtkPlotData *data, double x, double y, gboolean *error)
{
static int hookrun = 0;
gboolean ex = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment