DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DPlot and Programs
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    DPlot Forum Index -> Basic
View previous topic :: View next topic  
Author Message
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Tue May 25, 2004 5:03 pm    Post subject: 2D graph "glitch" Reply with quote

Hi,

I did a 2D graph and the result is with "glitch" like you can see:



If I don't mask DPlot and check the result, it's the same until I maximised the window, the result become clear. I search and try differents solutions but none work well. Is there a solution?
________
HERBALAIRE


Last edited by guibson on Fri Feb 11, 2011 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue May 25, 2004 5:11 pm    Post subject: Reply with quote

I'm sorry but I don't see anything wrong with your picture, unless it's that the bottom of the 0.5 and 1 on the X axis are clipped, and I suspect that's an artifact of how you grabbed the screen shot rather than a DPlot problem.

What is it specifically that you don't like about that plot?
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Tue May 25, 2004 5:18 pm    Post subject: 2D graph Reply with quote

Look the pink line. The line is not clear and when I maximized DPlot's window, the line besome clear. The problem is that the application receive the line with glitchs.
________
Return Of Premium Life Insurance Forums


Last edited by guibson on Mon Mar 14, 2011 2:16 am; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue May 25, 2004 5:41 pm    Post subject: Reply with quote

Try this: Use Notepad to open dplot.ini in the DPlot folder. Move to the end of the file and add these lines:

[Debugging]
UseDPlotClipping=1

save dplot.ini and try your plot again.

"UseDPlotClipping" is a bit of a misnomer. This setting forces DPlot to use software clipping rather than Windows API routines, but it also forces DPlot to use my line-drawing routines rather than the (bah!) faster Windows API routines. With very large data sets your plots will be a bit slower, but you should get results similar to this:

_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue May 25, 2004 10:10 pm    Post subject: Reply with quote

By the way, fiddling with that ini setting is only a temporary measure. Your post made me take a closer look at what's going on and the problem is now fixed. The fix will be included in the next release. The problem only crops up with solid lines > 1 pixel wide on plots in which the scaled distance between adjacent data points is less than 1 pixel. That's why you don't see the problem when you maximize the window.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Wed Apr 06, 2005 3:16 pm    Post subject: Defaut value for ContourView function Reply with quote

What are the default values for this function if it is not used in a command string for a graphic ?
________
Buy Iolite Vaporizer


Last edited by guibson on Fri Feb 11, 2011 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Wed Apr 06, 2005 3:19 pm    Post subject: DPlot_3DBorder function Reply with quote

Can I get more information and maybe an example for this function ?
________
Suzuki Boulevard S50


Last edited by guibson on Fri Feb 11, 2011 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Apr 06, 2005 3:27 pm    Post subject: Reply with quote

I don't understand your question. What function? Did you mean to post this somewhere else?

If you're talking about [FilePrint()], that's fully documented in the Help file.

If instead you're talking about "UseDPLOTClipping", that was only a workaround to get rid of jaggies in plots where the points were so closely-spaced that they overlapped on the screen. A drawing optimization for this case ended up fouling up the plot, as shown in your example. This problem was fixed almost a year ago, so this isn't relevant to the current version.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Wed Apr 06, 2005 4:19 pm    Post subject: Question about a function Reply with quote

The function name was on the subject. So, this is the function I need help : DPlot_3DBorder function

Can you give me an example?
________
Crf150F


Last edited by guibson on Fri Feb 11, 2011 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Apr 06, 2005 4:28 pm    Post subject: Reply with quote

Ah, sorry. I tend to overlook those.

The ctest example uses DPlot_3DBorder; there isn't currently one in VB but it is fairly simple to use. Syntax is described in the documentation: http://www.dplot.com/lib/dplot_3dborder.htm. The border points should be in order but may be in either direction: clockwise or counterclockwise.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Thu Apr 07, 2005 7:55 am    Post subject: Information for ContourView function Reply with quote

ContourView function

I'd like to know what are the min. and max. values for the parameters of this function. Also, if not specified in the argument line what are the default values.

Thanks !
________
Mexico City Hotels


Last edited by guibson on Fri Feb 11, 2011 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Thu Apr 07, 2005 8:23 am    Post subject: Reply with quote

Azimuth can be any angle. Elevation should be between -90 and 90, inclusive. Both angles are in degrees. There are no default values; both must be specified.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 08, 2005 10:31 am    Post subject: About the new version and Y axis Reply with quote

Hi,

I tried the latest version of Dplot and now, my program show the Y axis in the wrong angle. The Title1 also has change. The font point is now bigger than the previous version. Are you able to tell me wich properties have been had or modified?
________
HOTBOX VAPORIZERS


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 08, 2005 10:42 am    Post subject: Reply with quote

Nothing has changed with regard to the font sizes. If your program is not explicitly setting the font sizes and those sizes are important to you, you need to be doing that with TextFont commands. Otherwise DPlot will get font sizes from the default settings file (if there is one) or from the last time DPlot was run.

There might be weird cases where the Y axis (or the X) is drawn at the wrong angle, but this would not be a recent change. I thought I had all possible orientations covered but it is possible that I missed something. If you'll let me know the view angles, the X, Y, Z scale factors and the X, Y, and Z extents of your plot then I'll look into this.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 08, 2005 12:17 pm    Post subject: About the Y axis Reply with quote

Here is an image


As you can see the Y axis label "Temperature ?C" should be vertical not in horizontal. My code did not change between the two versions. I don't know how to repair the problem.
________
Ford Lightning


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 08, 2005 12:27 pm    Post subject: Reply with quote

I assumed we were talking 3D.

What has most likely happened is DPlot has fouled up and wrote all 0's for the font sizes, weights, names, etc. to dplot.ini. This only seems to happen when plotting via DPLOTLIB.DLL. I thought I had this problem beat but must have missed something. Open dplot.ini (in the same folder as DPlot) with Notepad. Find the [Fonts] section, under which there will be 8 lines: "Font1=..." through "Font8=...". If I'm right, then all of those lines will be entirely 0's. If so, just delete the entire section starting with [Fonts] and save the file. If you have a file named default.set in the DPlot folder do the same for it. Now start DPlot standalone and close it. This *should* fix the problem, but let me know if it doesn't.

My previous advice is still valid: if you want to ensure that you get the fonts you want, rather than whatever DPlot wants to use as a default, then you should use a series of TextFont commands in your program.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 08, 2005 12:35 pm    Post subject: Font problem Reply with quote

I did it and nothing append.
________
Vermont Medical Marijuana Dispensary


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 08, 2005 12:40 pm    Post subject: Reply with quote

You did what? Were all of those font entries "0,0,0,0,...."? Are they now?

Also check to make sure that DPlot isn't still running hidden, which would have prevented your changes to dplot.ini from doing anything. Start Task Manager with Ctrl+Alt+Del, look at the Processes tab and make sure dplot.exe isn't in there. If it is, click "End Process".
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 08, 2005 12:51 pm    Post subject: Reply with quote

Go see this reply completely at the end of the page (http://www.dplot.com/forums/viewtopic.php?t=5&start=30). you will see an image of the problem.
________
Honda Fc Sport History


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 08, 2005 12:59 pm    Post subject: Reply with quote

I saw the image and understand the problem: your Y axis label is horizontal rather than vertical.

Please answer my previous questions: what did you do? Did you edit dplot.ini and, if present, default.set? Did you use Task Manager to make sure that DPlot wasn't still running when you made those changes? (assuming that changes were made). Are you using a TextFont command to set the font used by the Y axis? If so, please copy the command and the parameters used to your reply.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 08, 2005 1:28 pm    Post subject: Reply with quote

I edit dplot.ini and erase everything in the [fonts] section. There was no default.set file. No other instance of dplot was in memory. Here is my code to set the fonts :
Code:

cmds = cmds & "[FontPoints(1,8)][FontPoints(2,8)][FontPoints(3,8)][TextFont(2,8,700,0,0,0,0,""arial"")][TextFont(3,8,700,0,0,0,0,""arial"")]"
    cmds = cmds & "[FontPoints(4,10)][FontPoints(5,10)][FontPoints(6,7)]"

________
No2 vaporizer


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 08, 2005 2:06 pm    Post subject: Reply with quote

Try adding a TextFont command for the Y axis:

[TextFont(5,10,700,0,0,0,0,""Arial"")]"

The lower case "arial" in your example worries me a bit; that seemed to work when I tried it but the font name is correctly "Arial". It's possible that DPlot is fouling up with the lower case version.

Next release I'll add a check against a null facename and set to "Arial" if it's blank; that should fix this problem once and for all.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Mon Apr 11, 2005 12:42 pm    Post subject: Reply with quote

I change arial to Arial and the result is the same. I will downgrade to a previous version fo DPlot and send you information about the results.

thanks
________
No2 vaporizer reviews


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Apr 11, 2005 12:59 pm    Post subject: Reply with quote

Did you also try this?

Quote:
Try adding a TextFont command for the Y axis:

[TextFont(5,10,700,0,0,0,0,""Arial"")]"

_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Mon Apr 11, 2005 1:21 pm    Post subject: Reply with quote

You found the problem! The problem is fixed. Thanks a lot!
________
[URL=http://www.honda-wiki.org/wiki/Honda_Odyssey_(ATV)]Honda Odyssey (ATV)[/URL]


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Apr 11, 2005 1:39 pm    Post subject: Reply with quote

You're welcome, but that's not really the problem... just a symptom. That step shouldn't be necessary, and won't be in the next version.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 15, 2005 9:57 am    Post subject: About a dot in 3D graph Reply with quote

I tried to put a dot in a 3D graph. I took the btest7 example and had minors things to ajust. The problem is the lines in Y and Z axes are off. The X axis is perfect. Is it possible that the btest7 example contains constants just for the context?
________
Herbal Health


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 15, 2005 10:17 am    Post subject: Reply with quote

That's possible, though I don't see any problems. If you'll let me know:

The X,Y, and Z extents of your data
The scale factors used (those returned by DPlot_GetBitmapEx)
The viewing angles you're using

that would be helpful in finding the problem.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
guibson



Joined: 10 Mar 2004
Posts: 54

PostPosted: Fri Apr 15, 2005 10:50 am    Post subject: Reply with quote

extents(0) = 0.5
extents(1) = 0
extents(2) = 1.25
extents(3) = 15
extents(4) = 1045.96
extents(5) = 1306.52


azimuth : 1.5708
elevation : 1.5708
hll : 51
hur : 398
scale : 23.1333
SIZE : 60
stretch(0) : 20
stretch(1) : 1
stretch(2) : 0.02878
vll : 429
vur : 82
xhi : 25
xlo : 10
yhi : 15
ylo : 1.84321E-15

Azimuth 90
Elevation 90

I used these angles for troubleshooting.
thanks
________
Maryjane


Last edited by guibson on Fri Feb 11, 2011 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Apr 15, 2005 1:11 pm    Post subject: Reply with quote

I modified that btest7 program, changing the equation and the extents to match what you're doing (as far as I can tell) and it looks fine to me, other than in the first shot that vertical line from the data point should be hidden, but that's outside the scope of what we're talking about.






Make sure you're using the ManualScale command to set the extents to the values you want. If you don't do that then at best your line segments will be drawn to the wrong endpoints. Other than that I don't know what might be the problem, but this appears to be working correctly at the DPlot/DPLOTLIB end.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Basic All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group