Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
 
Thread Tools  Search this thread 
robinsa
March 30, 2007 2:53 AM PDT
Axes for 3D Graph In Fortran

I am trying to include axes on a 3D graph using Array Visualizer.  I have included a simple win project to explain my dilema.

Any suggestions how to fix the following issues would be appreciated:

The minor and major tickmarks do not appear on the graph - although I have attempted to make them visible.

The axis line thickness does not change regardless of the value used in avSetLineWidth.  The integer return value from avGetLineWidthUnits is -1, even if set to 1 using avSetLineWidthUnits.  What should it be?  Am I applying the property modification to the correct object?

Setting the axis line end-caps to values lower than 1.0_4 makes them dissapear from the graph.  At 1.0_4 they are oversized. Not all the end caps  What am I missing?

Does anyone have a working Fortran 3D graph with axes and lables that they can post?

Thanking you in advance.

 Attachments 
jimdempseyatthecove
Total Points: 13284
Status Points: 13284
Black Belt
March 31, 2007 6:49 AM PDT
Rate
 
#1

Robin,

The line drawing can be made using different types of units. One of the units is Points (typographical unit) and the other type of unit is Pixel (graphical screen unit). I have experienced similar problems when using Points. Try setting the property to use Pixels, then pass in integer values 1, 2, 3, ... for number of pixels in width.

Also, as an aid, when the graph is displayed (badly) navigate the browse tree to find the plot in error (expand it like a file folder tree) when you select an item of interest it becomes highlighted on the screen (the others become lowlighted). Then right-click on the item in the browse tree and selecte Properties. In there you can see what your program sent to AV and may discover the problem. Plus you can change values ineractively.

Jim Dempsey

 

ISN Admin
April 25, 2007 12:46 PM PDT
Rate
 
#2
I don't know whether you solved the problem but I had a look at it as I wanted to do something similar. If you scale everything by a factor, say 100, then your end-caps can be proportionally smaller. I've added some code to the end of your createGraph routine to do it (I had to alter the RefLine values to put the axes in the same place in the view as yours - I'm not sure why but it's probably obvious if all the transformations are worked through)
 Attachments 

Forum Statistics

4474 users have contributed to 24002 threads and 69880 posts to date.
In the past 24 hours, we have 41 new thread(s) 169 new posts(s), and 216 new user(s).

In the past 3 days, the most popular thread for everyone has been Catastrophic error The most posts were made to Using the Partner Program Website The post with the most views is You can report them here if

Please welcome our newest member Udaysimha Mysore (Intel)